Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 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('GD')
|
||||
|
||||
var img = %s<GD::Image>.new(256, 256, 1)
|
||||
|
||||
for y,x in (^256 ~X ^256) {
|
||||
var color = img.colorAllocate((255 - x - y).abs, (255-x)^y, x^(255-y))
|
||||
img.setPixel(x, y, color)
|
||||
}
|
||||
|
||||
File('xor.png').write(img.png, :raw)
|
||||
Loading…
Add table
Add a link
Reference in a new issue