Pixel Art Graphics Programming - Yes, You Can! Make Your Own Dodge Shiba Inu Punks (32x32) with Ruby from Scratch - Much Wow

Hello,

  I have put together a new (free) punk pixel art series that
  includes four shiba inu variants - classic, dark, alien and zombie -
and some first attributes
such as beanie, headband, cap, knitted cap, 3d glasses and more.

  Let's generate a classic shiba inu dodge punk (32x32) with 3d
glasses from scratch
  using the pixelart gem [1]:

require 'pixelart'

dodge = Image.parse( <<TXT, colors: ['000000', 'DB8A37', 'EDC685', 'FFFFFF' ] )
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . @ @ . . . . . @ . . . . . . . . . . .
. . . . . . . . . . . . @ o o @ . . . @ o @ . . . . . . . . . .
. . . . . . . . . . . . @ o o o @ @ @ o o o @ . . . . . . . . .
. . . . . . . . . . . @ o o o x x x x x x x @ . . . . . . . . .
. . . . . . . . . . . @ o o x x x x x x x x x @ . . . . . . . .
. . . . . . . . . . . @ o x x x x x x x x x x @ . . . . . . . .
. . . . . . . . . . @ x x x x x x x x x x x x x @ . . . . . . .
. . . . . . . . . . @ x x x x x x x x x x x x x @ . . . . . . .
. . . . . . . . . @ x x x x x x x x x x @ ^ x x @ . . . . . . .
. . . . . . . . . @ x x x x x x @ ^ x x x x x x x @ . . . . . .
. . . . . . . . @ x x x x x x x x x x x x x x x x @ . . . . . .
. . . . . . . . @ x x x x x x x x x x x x x x x x @ . . . . . .
. . . . . . . . @ x x x x o o o x x x x @ @ @ @ o @ . . . . . .
. . . . . . . . @ x x x o o o o o o x x x @ @ @ o @ . . . . . .
. . . . . . . . @ x x x o o o o o o o o o o @ o o @ . . . . . .
. . . . . . . . @ x x x o o o o o o @ @ @ @ o o @ . . . . . . .
. . . . . . . . . @ x x x o o o o o o o o o o o @ . . . . . . .
. . . . . . . . . @ x x x o o o o o o o o o o @ . . . . . . . .
. . . . . . . . . . @ x x x o o o o o o o o @ . . . . . . . . .
. . . . . . . . . . . @ @ @ @ @ @ @ @ @ @ @ . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TXT

_3dglasses = Image.parse( <<TXT, colors: ['328DFD', 'FD3232', 'F0F0F0'] )
o o o o o o o o o o o o o o o
. o o @ @ @ @ @ o x x x x x o
. . o @ @ @ @ @ o x x x x x o
. . o o o o o o o o o o o o o
TXT

dodge.compose!( _3dglasses, 10, 13 )
dodge.save( "dodge.png" )
dodge.zoom(4).save( "dodgex4.png" )
dodge.zoom(8).save( "dodgex8.png" )

  That's it. Now you have a 32x32 version and 4x and 8x version.
  Yes, you can. Try it yourself or
   see the dodge images at the Punks Building Blocks repo [2].

   Happy pixel art and graphics programming with ruby. Cheers. Prost.

[1] pixelart | RubyGems.org | your community gem host
[2] GitHub - cryptopunksnotdead/punks.blocks: DIY (Do-It-Yourself) - Yes, You Can! Design Your Own Punks using the Punk (Building) Blocks - Original CryptoPunks Series (24×24) And More

These excessively wordy, zoomer-tier, social media clickbait titles have got to go, my man. The only thing missing is a gaping-mouthed Le SuRpRiSeD face thumbnail image. I support your efforts and your right to share whatever it is you’re working on, but you should really consider wordsmithing your titles, because nobody will take you seriously.

···

Il giorno 6 ago 2021, alle ore 11:39 AM, Gerald Bauer <gerald.bauer@gmail.com> ha scritto:

Hello,

I have put together a new (free) punk pixel art series that
includes four shiba inu variants - classic, dark, alien and zombie -
and some first attributes
such as beanie, headband, cap, knitted cap, 3d glasses and more.

Let's generate a classic shiba inu dodge punk (32x32) with 3d
glasses from scratch
using the pixelart gem [1]:

require 'pixelart'

dodge = Image.parse( <<TXT, colors: ['000000', 'DB8A37', 'EDC685', 'FFFFFF' ] )
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . @ @ . . . . . @ . . . . . . . . . . .
. . . . . . . . . . . . @ o o @ . . . @ o @ . . . . . . . . . .
. . . . . . . . . . . . @ o o o @ @ @ o o o @ . . . . . . . . .
. . . . . . . . . . . @ o o o x x x x x x x @ . . . . . . . . .
. . . . . . . . . . . @ o o x x x x x x x x x @ . . . . . . . .
. . . . . . . . . . . @ o x x x x x x x x x x @ . . . . . . . .
. . . . . . . . . . @ x x x x x x x x x x x x x @ . . . . . . .
. . . . . . . . . . @ x x x x x x x x x x x x x @ . . . . . . .
. . . . . . . . . @ x x x x x x x x x x @ ^ x x @ . . . . . . .
. . . . . . . . . @ x x x x x x @ ^ x x x x x x x @ . . . . . .
. . . . . . . . @ x x x x x x x x x x x x x x x x @ . . . . . .
. . . . . . . . @ x x x x x x x x x x x x x x x x @ . . . . . .
. . . . . . . . @ x x x x o o o x x x x @ @ @ @ o @ . . . . . .
. . . . . . . . @ x x x o o o o o o x x x @ @ @ o @ . . . . . .
. . . . . . . . @ x x x o o o o o o o o o o @ o o @ . . . . . .
. . . . . . . . @ x x x o o o o o o @ @ @ @ o o @ . . . . . . .
. . . . . . . . . @ x x x o o o o o o o o o o o @ . . . . . . .
. . . . . . . . . @ x x x o o o o o o o o o o @ . . . . . . . .
. . . . . . . . . . @ x x x o o o o o o o o @ . . . . . . . . .
. . . . . . . . . . . @ @ @ @ @ @ @ @ @ @ @ . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TXT

_3dglasses = Image.parse( <<TXT, colors: ['328DFD', 'FD3232', 'F0F0F0'] )
o o o o o o o o o o o o o o o
. o o @ @ @ @ @ o x x x x x o
. . o @ @ @ @ @ o x x x x x o
. . o o o o o o o o o o o o o
TXT

dodge.compose!( _3dglasses, 10, 13 )
dodge.save( "dodge.png" )
dodge.zoom(4).save( "dodgex4.png" )
dodge.zoom(8).save( "dodgex8.png" )

That's it. Now you have a 32x32 version and 4x and 8x version.
Yes, you can. Try it yourself or
  see the dodge images at the Punks Building Blocks repo [2].

  Happy pixel art and graphics programming with ruby. Cheers. Prost.

[1] pixelart | RubyGems.org | your community gem host
[2] GitHub - cryptopunksnotdead/punks.blocks: DIY (Do-It-Yourself) - Yes, You Can! Design Your Own Punks using the Punk (Building) Blocks - Original CryptoPunks Series (24×24) And More

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<ruby-talk list: member options login page>

Like others have suggested before, why don't you try to modify the titles
so they can be understood more easily?

Your Title: Pixel Art Graphics Programming - Yes, You Can! Make Your Own
Dodge Shiba Inu Punks (32x32) with Ruby from Scratch - Much Wow

could be rewritten as:

"Pixel Art Graphics in Ruby". That's clear, concise, and it respects me as
a reader.

Best,

···

On Fri, Aug 6, 2021, 9:21 AM Cameron <cameron.nigro@gmail.com> wrote:

These excessively wordy, zoomer-tier, social media clickbait titles have
got to go, my man. The only thing missing is a gaping-mouthed Le SuRpRiSeD
face thumbnail image. I support your efforts and your right to share
whatever it is you’re working on, but you should really consider
wordsmithing your titles, because nobody will take you seriously.

> Il giorno 6 ago 2021, alle ore 11:39 AM, Gerald Bauer < > gerald.bauer@gmail.com> ha scritto:
>
> Hello,
>
> I have put together a new (free) punk pixel art series that
> includes four shiba inu variants - classic, dark, alien and zombie -
> and some first attributes
> such as beanie, headband, cap, knitted cap, 3d glasses and more.
>
> Let's generate a classic shiba inu dodge punk (32x32) with 3d
> glasses from scratch
> using the pixelart gem [1]:
>
>
> ```
> require 'pixelart'
>
> dodge = Image.parse( <<TXT, colors: ['000000', 'DB8A37', 'EDC685',
'FFFFFF' ] )
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . @ @ . . . . . @ . . . . . . . . . . .
> . . . . . . . . . . . . @ o o @ . . . @ o @ . . . . . . . . . .
> . . . . . . . . . . . . @ o o o @ @ @ o o o @ . . . . . . . . .
> . . . . . . . . . . . @ o o o x x x x x x x @ . . . . . . . . .
> . . . . . . . . . . . @ o o x x x x x x x x x @ . . . . . . . .
> . . . . . . . . . . . @ o x x x x x x x x x x @ . . . . . . . .
> . . . . . . . . . . @ x x x x x x x x x x x x x @ . . . . . . .
> . . . . . . . . . . @ x x x x x x x x x x x x x @ . . . . . . .
> . . . . . . . . . @ x x x x x x x x x x @ ^ x x @ . . . . . . .
> . . . . . . . . . @ x x x x x x @ ^ x x x x x x x @ . . . . . .
> . . . . . . . . @ x x x x x x x x x x x x x x x x @ . . . . . .
> . . . . . . . . @ x x x x x x x x x x x x x x x x @ . . . . . .
> . . . . . . . . @ x x x x o o o x x x x @ @ @ @ o @ . . . . . .
> . . . . . . . . @ x x x o o o o o o x x x @ @ @ o @ . . . . . .
> . . . . . . . . @ x x x o o o o o o o o o o @ o o @ . . . . . .
> . . . . . . . . @ x x x o o o o o o @ @ @ @ o o @ . . . . . . .
> . . . . . . . . . @ x x x o o o o o o o o o o o @ . . . . . . .
> . . . . . . . . . @ x x x o o o o o o o o o o @ . . . . . . . .
> . . . . . . . . . . @ x x x o o o o o o o o @ . . . . . . . . .
> . . . . . . . . . . . @ @ @ @ @ @ @ @ @ @ @ . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
> TXT
>
> _3dglasses = Image.parse( <<TXT, colors: ['328DFD', 'FD3232', 'F0F0F0'] )
> o o o o o o o o o o o o o o o
> . o o @ @ @ @ @ o x x x x x o
> . . o @ @ @ @ @ o x x x x x o
> . . o o o o o o o o o o o o o
> TXT
>
> dodge.compose!( _3dglasses, 10, 13 )
> dodge.save( "dodge.png" )
> dodge.zoom(4).save( "dodgex4.png" )
> dodge.zoom(8).save( "dodgex8.png" )
> ```
>
> That's it. Now you have a 32x32 version and 4x and 8x version.
> Yes, you can. Try it yourself or
> see the dodge images at the Punks Building Blocks repo [2].
>
> Happy pixel art and graphics programming with ruby. Cheers. Prost.
>
>
> [1] pixelart | RubyGems.org | your community gem host
> [2]
GitHub - cryptopunksnotdead/punks.blocks: DIY (Do-It-Yourself) - Yes, You Can! Design Your Own Punks using the Punk (Building) Blocks - Original CryptoPunks Series (24×24) And More
>
> Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org
?subject=unsubscribe>
> <ruby-talk list: member options login page>

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<ruby-talk list: member options login page>

Reminds me of the XPM format: X PixMap - Wikipedia

Some text editors can even highlight this format correctly:

···

On 8/6/21 5:38 PM, Gerald Bauer wrote:

Hello,

   I have put together a new (free) punk pixel art series that
   includes four shiba inu variants - classic, dark, alien and zombie -
  and some first attributes
such as beanie, headband, cap, knitted cap, 3d glasses and more.

   Let's generate a classic shiba inu dodge punk (32x32) with 3d
glasses from scratch
   using the pixelart gem [1]:

require 'pixelart'

dodge = Image.parse( <<TXT, colors: ['000000', 'DB8A37', 'EDC685', 'FFFFFF' ] )
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . @ @ . . . . . @ . . . . . . . . . . .
. . . . . . . . . . . . @ o o @ . . . @ o @ . . . . . . . . . .
. . . . . . . . . . . . @ o o o @ @ @ o o o @ . . . . . . . . .
. . . . . . . . . . . @ o o o x x x x x x x @ . . . . . . . . .
. . . . . . . . . . . @ o o x x x x x x x x x @ . . . . . . . .
. . . . . . . . . . . @ o x x x x x x x x x x @ . . . . . . . .
. . . . . . . . . . @ x x x x x x x x x x x x x @ . . . . . . .
. . . . . . . . . @ x x x x x x x x x x @ ^ x x @ . . . . . . .
. . . . . . . . . @ x x x x x x @ ^ x x x x x x x @ . . . . . .
. . . . . . . . @ x x x x x x x x x x x x x x x x @ . . . . . .
. . . . . . . . @ x x x x o o o x x x x @ @ @ @ o @ . . . . . .
. . . . . . . . @ x x x o o o o o o x x x @ @ @ o @ . . . . . .
. . . . . . . . @ x x x o o o o o o o o o o @ o o @ . . . . . .
. . . . . . . . @ x x x o o o o o o @ @ @ @ o o @ . . . . . . .
. . . . . . . . . @ x x x o o o o o o o o o o o @ . . . . . . .
. . . . . . . . . @ x x x o o o o o o o o o o @ . . . . . . . .
. . . . . . . . . . @ x x x o o o o o o o o @ . . . . . . . . .
. . . . . . . . . . . @ @ @ @ @ @ @ @ @ @ @ . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TXT

_3dglasses = Image.parse( <<TXT, colors: ['328DFD', 'FD3232', 'F0F0F0'] )
o o o o o o o o o o o o o o o
. o o @ @ @ @ @ o x x x x x o
. . o @ @ @ @ @ o x x x x x o
. . o o o o o o o o o o o o o
TXT

dodge.compose!( _3dglasses, 10, 13 )
dodge.save( "dodge.png" )
dodge.zoom(4).save( "dodgex4.png" )
dodge.zoom(8).save( "dodgex8.png" )

   That's it. Now you have a 32x32 version and 4x and 8x version.
   Yes, you can. Try it yourself or
    see the dodge images at the Punks Building Blocks repo [2].

    Happy pixel art and graphics programming with ruby. Cheers. Prost.

[1] pixelart | RubyGems.org | your community gem host
[2] GitHub - cryptopunksnotdead/punks.blocks: DIY (Do-It-Yourself) - Yes, You Can! Design Your Own Punks using the Punk (Building) Blocks - Original CryptoPunks Series (24×24) And More

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<ruby-talk list: member options login page>

Hello,

Reminds me of the XPM format: X PixMap - Wikipedia

   Wow. When I started I was searching for pixel formats in text /
ascii but didn't really find anything.
    I am delighted to learn more about XPM - thanks for sharing.

     And, yes, the pixel art gem supports any chars to color mapping.
Example from the readme [1]:

pixels = <<PIXELS
o o o o o o o o o o o o o o o o o lg lg lg dg o o o o o o o o o o o o o o o o o
o o o o o o o o o o o o o o dg lg lg w lg lg dg dg lg dg o o o o o o o
o o o o o o o
o o o o o o o o o o o o o dg lg w lg w lg lg dg dg w lg  dg o o o o o
o o o o o o o o
o o o o o o o o o o o o dg lg w w lg w lg lg dg dg w w  lg dg o o o o
o o o o o o o
o o o o o o o o o o o o dg dg w w lg w lg lg dg dg w w  dg dg o o o o
o o o o o o o
o o o o o o o o o o o dg dg dg lg w lg w lg lg dg dg w lg dg dg dg o o
o o o o o o o o
o o o o o o o o o o o dg dg dg w lg lg w lg lg dg dg lg w dg dg dg o o
o o o o o o o o
o o o o o o o o o o o dg dg w lg lg lg w lg lg dg dg lg lg w dg dg o o
o o o o o o o o
o o o o o o o o o o o dg lg lg b b b lg dg dg lg b b b lg lg dg o o o
o o o o o o o
o o o o o o o o o o o dg lg b b b b b lg lg b b b b b lg dg o o o o o o o o o o
o o o o o o o o o o o lg b b db lg db b dg dg b lg db db b b lg o o o
o o o o o o o
o o o o o o o o o o lg b b b db db db b lg lg b db db db b b b lg o o
o o o o o o o
o o o o o o o o o o lg b b dg lg lg lg lg b b lg lg lg lg dg b b lg o
o o o o o o o o
o o o o o o o o o lg b b b dg dg dg dg lg b b lg dg dg dg dg b b b lg
o o o o o o o o
o o o o o o o o o lg b b b dg dg dg lg b b b b lg dg dg dg b b b lg o
o o o o o o o
o o o o o o o o lg b b b b b dg dg b dg b dg b b lg dg b b b b b lg o
o o o o o o
o o o o o o o o b b b b b b w b b dg b dg b dg b w b b b b b b o o o o o o o
o o o o o o o o b b b b b b dg dg dg dg dg dg dg dg dg dg b b b b b b
o o o o o o o
o o o o o o o o o b b b b lg b b b b b b b b b b b b b b b o o o o o o o o
o o o o o o o o o o o o b lg lg dg dg b b b b dg dg b b b o o o o o o o o o o o
o o o o o o o o o o o o lg lg dg dg dg dg b b b dg dg dg dg b b o o o
o o o o o o o
o o o o o o o o o dg dg b dg dg dg dg dg dg dg dg dg dg dg dg dg dg dg
b dg dg o o o o o o o
o o o o o o o o dg dg b b lg lg lg lg lg lg lg lg lg lg lg lg lg lg lg
b b dg dg o o o o o o
o o o o o o o dg dg b lg b lg dg lg lg dg dg lg lg dg dg lg lg dg dg
lg b lg b dg dg o o o o o
o o o o o o dg dg b lg lg b lg dg lg lg dg dg lg lg dg dg lg lg dg dg
lg b lg lg b dg dg o o o o
o o o o o dg dg b b b b b lg dg lg lg dg dg lg lg dg dg lg lg dg dg lg
b b b b b dg dg
o o o o dg dg dg b dg dg b b b b lg lg dg dg lg lg dg dg lg lg b b b b
dg dg dg b dg dg dg
o o o dg dg dg b dg dg dg b b b dg b b dg dg lg lg dg dg b b b dg b b
b dg dg dg b dg dg dg
o o o dg dg b dg dg dg b b b dg dg dg b b b lg lg b b b dg dg dg b b b
b dg dg dg b dg dg
o o dg dg dg b dg dg b b b b dg dg dg b lg lg b b lg lg dg dg dg dg b
b b b b dg dg b dg dg dg
o o dg dg dg b dg b b b b b dg dg dg b b b b b b b dg b dg dg b b b b
b b dg b dg dg dg
o dg dg dg dg b dg b b b b b dg b dg b b lg lg b r b dg b dg dg b b b
b b b dg b dg dg dg dg
o dg dg dg dg b dg lg b b b b dg b dg b b b b b b b dg b dg dg b b b b
b lg dg b dg dg dg dg
o dg dg dg dg b lg dg lg b b b dg b dg b b lg lg b blu b dg b dg dg b
b b b lg dg lg b dg dg dg dg
o dg dg dg dg b dg lg dg lg b b dg b dg b b b b b b b dg b dg dg b b b
lg dg lg dg b dg dg dg dg
o dg dg dg dg b dg dg lg dg lg b dg b dg b lg lg lg lg lg lg b b dg dg
b b lg dg lg dg dg b dg dg dg dg
o dg dg dg dg b b dg dg lg dg b b b b b b b b b b b b b b b b b dg lg
dg dg b b dg dg dg dg
o dg dg dg dg b b b dg dg dg b lg b g b b lg lg lg lg b b g b lg b b
dg dg dg b b b dg dg dg dg
o dg dg dg dg b b b b dg b b b b b b b dg dg lg lg b b b b b b b b dg
b b b b dg dg dg dg
o dg dg dg dg b b b b b b b b b b b b b b b b b b b b b b b b b b b b
b dg dg dg dg
o dg dg dg dg b b b b b b b dg b dg b dg dg dg dg dg dg b dg b lg b b
b b b b b b dg dg dg dg
o dg dg dg b b b b b b b b dg b dg b dg dg dg dg dg dg b dg b lg dg b
b b b b b b b dg dg dg
o dg dg dg b b b b b b b b b dg dg b dg dg dg dg dg dg b dg b dg dg b
b b b b b b b dg dg dg
o dg dg dg b b b b b b b b b dg dg b b dg dg dg dg b b dg b w lg b b b
b b b b b dg dg dg
o dg dg dg b b b b b b b b b dg dg b b dg dg dg dg b b dg b w lg b b b
b b b b b dg dg dg
o dg dg dg b b b b b b b b b dg dg b dg b dg dg b dg b dg b lg dg b b
b b b b b b dg dg dg
o dg dg dg b b b b b b b b b dg dg b dg dg b b dg dg b dg b dg dg b b
b b b b b b dg dg dg
o dg dg dg b b b b b b b b dg dg dg b dg dg b dg dg dg b dg b lg dg b
b b b b b b b dg dg dg
o dg dg dg b b b b b b b b dg dg dg b dg dg b dg dg dg b dg b lg dg b
b b b b b b b dg dg dg
dg dg dg dg b b b b b b b b dg dg dg b dg dg b dg dg dg b dg b lg dg b
b b b b b b b dg dg dg dg
dg dg dg dg b b b b b b b b dg dg dg b dg b b b dg dg b dg b b b b b b
b b b b b dg dg dg dg
dg dg dg dg b b b b b b b b dg dg dg b dg b b b dg dg b dg dg dg b b b
b b b b b b dg dg dg dg
dg dg dg dg b b b b b b b b dg dg dg b dg b b b dg dg b dg dg dg b b b
b b b b b b dg dg dg dg
dg dg dg dg b b b b b b b b dg b dg b dg b b b dg dg b dg dg dg b b b
b b b b b b dg dg dg dg
dg dg dg dg b b b b b b b b dg b dg b dg b b b dg dg b dg dg dg b b b
b b b b b b dg dg dg dg
dg dg dg dg b b b b b b b b dg b dg b dg b b b dg dg b dg dg dg b b b
b b b b b b dg dg dg dg
dg dg dg dg b b b b b b b b dg b dg b dg b b b dg dg b dg b dg b b b b
b b b b b dg dg dg dg
dg dg dg dg b b b b b b b b dg b dg b dg b b b dg dg b dg b dg b b b b
b b b b b dg dg dg dg
dg dg dg dg b b b b b b b b dg b dg b dg b b b dg dg b dg b dg b b b b
b b b b b dg dg dg dg
dg dg dg dg b b b b b b b b dg b dg b dg b b b dg dg b dg b dg b b b b
b b b b b dg dg dg dg
dg dg dg dg b b b b b b b b b b b b dg b b b dg dg b b b b b b b b b b
b b b dg dg dg dg
dg dg dg dg b b b b b b b b dg lg dg dg dg b b b dg lg dg dg dg dg b b
b b b b b b b dg dg dg dg
dg dg dg dg b b b b b b b b dg lg dg dg dg b b b dg lg dg dg dg dg b b
b b b b b b b dg dg dg dg
dg dg dg dg b b o o o o o o b b b dg dg b b b dg dg dg b b b o o o o o
o o b b dg dg dg dg
o o dg dg o o o o o o o b lg lg dg b b b o o b b lg dg dg dg b o o o o
o o b b dg dg dg dg
o o o o o o o o o b lg lg dg dg dg dg dg b o o b dg lg lg dg dg dg b
o o o o o o o o b dg dg dg dg dg dg dg dg b o o b dg dg dg dg dg dg b b
o o o o ulg ulg ulg ulg b b b b b b b b b b ulg ulg b b b b b b b b b
ulg ulg ulg ulg
PIXELS

colors = {
   o:   'transparent',
   b:   '#1D191A',
   ulg: '#eaeaec',
   lg:  '#747474',
   db:  '#453C35',
   dg:  '#343031',
   w:   '#fff',
   r:   '#fc3435',
   blu: '#1F3A93',
   g:   '#00943b'
}

img = Image.parse( pixels, colors: colors )
img.save( 'vader.png' )

     May the force be with you. Happy pixel art programming with
ruby. Cheers. Prost.

[1] pixel/pixelart at master · rubycoco/pixel · GitHub

Hello,

[snip]

Please, no more ascii-art or ascii-art-as-code in list mail. It *really*
doesn't wrap well in clients...

If you want to include such long extracts of code and/or ascii-art then
you'd be much better using an online pastebin of your choice (think
syntax highlighting!) or even an attachment.

Thanks,

Charlie

···

On Sat, Aug 07, 2021 at 10:26:29AM +0200, Gerald Bauer wrote:

--
Charlie Jonas
  ~chtjonas