Hello,
For a change a public service "stop the war!" announcement in the
ongoing pixel programming - yes, with ruby - series:
The world has changed forever (and it's not the blockchain, it's war
in Europe!).
Send a fuck (vladimir) putin! stop the war! glory to ukraine! message
to the world with your profile picture (such as your pixel punks, apes, etc.)
with the flag of ukraine in the background.
Yes, you can. See the glorytoukraine script [1]
to get started with your own punks showing solidarity with the people
of Ukraine. Example:
require 'pixelart'
# make ukraine flag (background image 24x24)
UKRAINE_BLUE = '#0057b7' # rgb( 0, 87, 183 )
UKRAINE_YELLOW = '#ffdd00' # rgb( 255, 221, 0)
flag = Image.new( 24, 24 )
flag.compose!( Image.new( 24, 12, UKRAINE_BLUE ) )
flag.compose!( Image.new( 24, 12, UKRAINE_YELLOW ), 0, 12 )
punks = ImageComposite.read( "../awesome-24px/collection/punks.png" )
# let's do a 10x10 grid with a 100 punks preview
ukraine_punks = ImageComposite.new( 10, 10 )
punks.each_with_index do |base,i|
punk = Image.new( 24, 24 )
punk.compose!( flag )
punk.compose!( base )
# note: mirror, that is, flip image vertically (right-facing
to left-facing)
ukraine_punks << punk.mirror
break if i >= 99
end
ukraine_punks.save( "glorytoukrainepunks.png" )
Questions and comments welcome.
[1] cryptopunks/glorytoukraine.rb at master · cryptopunksnotdead/cryptopunks · GitHub