Skip to content

Latest commit

 

History

History
255 lines (166 loc) · 4.4 KB

A1_special_effects.md

File metadata and controls

255 lines (166 loc) · 4.4 KB

Appendix - Pixel Art Special Effects Gallery / Cheatsheet - Free Ideas & Recipes for Starting Your Own CryptoPunks Collection Today

Let's use the punks alien #3100, zombie #3393, blondie #172 and beanie #2964 to show off the special effects built into the pixel art machinery.

Zoom

Let's change the zoom factor to 4x:

punk.zoom(4)

8x:

punk.zoom(8)

Mirror - From Right-Facing to Left-Facing

Let's flip the pixels horizontally:

punk.mirror

4x:

8-Bit Color Palette - Greyscale, Sepia, Blue, Futuristic False

Let's change the color to black & white or more scientifically known as 8-bit grayscale, that is, 256 shades of gray starting with black (0x000000) and ending with white (0xffffff):

punk.grayscale

4x:

§

Let's change the color palette to ye olde' sepia:

punk.change_palette8bit( Palette8bit::SEPIA )

4x:

§

Let's change the color palette to a blue theme:

punk.change_palette8bit( Palette8bit::BLUE )

4x:

§

Let's change the color palette to the futuristic false series:

punk.change_palette8bit( Palette8bit::FALSE )

4x:

Black & White (Pencil Drawing) Sketch

Let's change to a black & white (pecil drawing) sketch using a sketch zoom - 4 pixels, line (brush) - 1 pixel (the default):

punk.sketch( 4 )

§

Sketch zoom - 4 pixels, line (brush) - 4 pixels:

punk.sketch( 4, line: 4 )

§

Sketch zoom - 8 pixels, line (brush) - 2 pixels:

punk.sketch( 8, line: 2 )

§

Sketch zoom - 12 pixels, line (brush) - 3 pixels:

punk.sketch( 12, line: 3 )

LED Light

Let's change to LED lights using LED - 8 pixels, spacing - 2 pixels (the default):

# note: change black pixels (0xff) to a (lighter) shade of black e.g. raisin black (0x242124ff)
punk = punk.change_colors( { 0xff => 0x242124ff } )

punk.led( 8, spacing: 2 )

§

LED zoom - 16 pixels, spacing - 3 pixels:

punk.led( 16, spacing: 3 )

§

LED zoom - 16 pixels, spacing - 8 pixels, round corner turned on:

punk.led( 16, spacing: 8, round_corner: true )

§

And so on. Now it's up to you. Yes, you can.