Another update from ingydotnet^djgoku

This commit is contained in:
Ingy döt Net 2015-11-18 06:14:39 +00:00
parent 91df62d461
commit 948b86eafa
7604 changed files with 108452 additions and 22726 deletions

View file

@ -0,0 +1,21 @@
function showpixel(a::Image, x::Int, y::Int)
c = color(a, x, y)
hex(c.r, 2)*hex(c.g, 2)*hex(c.b, 2)
end
w = 5
h = 7
a = Image(w, h)
purple = Color(0xff, 0, 0xff)
green = Color(0, 0xff, 0)
fill!(a, purple)
splat!(a, 2, 3, green)
for i in 1:h
for j in 1:w
print(showpixel(a, j, i), " ")
end
println()
end