View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Draw 8-bit Mario

Be the first to rate this file! 2 Downloads (last 30 days) File Size: 2.47 KB File ID: #40334 Version: 1.1
image thumbnail

Draw 8-bit Mario



15 Feb 2013 (Updated )

Simple script to draw an 8-bit Mario on a figure using patches.

| Watch this File

File Information

function [ ] = mario( min_x, max_x, min_y, max_y )
% MARIO This will draw an 8-bit version of mario in 12 x 16 resolution on the current figure. If no figure exists, will create a figure.
Inputs: min_x, max_x, min_y, max_y
% These coordinates specify the start and end coordinates to draw mario. Divides the vertical space into 16 chunks to determine the pixel size. Can change colors of specific parts such as overalls or mustache inside function.

Example Usage:
xlim([0 16]);

MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
16 Feb 2013 Luis Piloto

Thanks for the correction Aurelien, should be fixed and updated as soon as mathworks accepts my update.

Comment only
15 Feb 2013 Aurelien Queffurust

In the example given above , you must change xlim(0,16) by xlim([0 16])

Comment only
19 Feb 2013 1.1

Corrected example code in description. Thanks to Aurelien Queffurust for pointing it out!

Contact us