Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Munching-squares/Sidef/munching-squares.sidef
Normal file
10
Task/Munching-squares/Sidef/munching-squares.sidef
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
require('Imager')
|
||||
|
||||
var img = %O<Imager>.new(xsize => 256, ysize => 256)
|
||||
|
||||
for y=(^256), x=(^256) {
|
||||
var rgb = [(255 - x - y).abs, (255-x)^y, x^(255-y)]
|
||||
img.setpixel(x => x, y => y, color => rgb)
|
||||
}
|
||||
|
||||
img.write(file => 'xor.png')
|
||||
Loading…
Add table
Add a link
Reference in a new issue