ID:139929
 
Code:
proc
Draw(atom/ref, var/maxr=255, var/minr=0, var/maxg=255, var/ming=0, var/maxb=255, var/minb=0)
drawing = TRUE
var/icon/A = new('null.dmi')
var/r=0
var/g=0
var/b=0
while(drawing)
var/icon/B = new('pixel.dmi')
B.Shift(pick(dirs), rand(1,32), TRUE)
r=rand(minr,maxr)
g=rand(ming,maxg)
b=rand(minb,maxb)
B.Blend(rgb(r,g,b), ICON_MULTIPLY)
A.Blend(B, ICON_ADD)
ref.icon = A
sleep(1)


Problem description:
well, that was suppose to auto draw the icon for me depending on the rgb values and all that, i switched it up a lot of times and ended up with this, the icon B changes color and shifts just fine but im not too sure about the blending and icon changing because it th ref's icon never changes.
well i figured it out myself, turns out i just had to use ICON_OR, anyway im improving on this and even getting it to make icons in a linear fashion :)
In response to Masschaos100
DrawBox()
In response to Falacy
drawbox...i that seems so easy now that i think about it...