0 Members and 1 Guest are viewing this topic.
color = math.random(1,7)if color == 1 then gc:setColorRGB(255,0,0)elseif color == 2 then gc:setColorRGB(0,255,0)elseif color == 3 then gc:setColorRGB(0,0,255)elseif color == 4 then gc:setColorRGB(255,0,255)elseif color == 5 then gc:setColorRGB(0,255,255)elseif color == 6 then gc:setColorRGB(255,255,0)elseif color == 7 then gc:setColorRGB(255,150,0)end
color=math.random(1,7)colortable={0,0,0}if color<=3 then colortable[color]=255elseif color==4 or color==5 then colortable[3]=255 colortable[color-3]=255elseif color==6 then colortable[1]=255 colortable[2]=255else colortable[1]=255 colortable[2]=150endgc:setColorRGB(colortable[1],colortable[2],colortable[3])
colortable = {{255,0,0}, {0,255,0}, {0,0,255}, {255,0,255}, {0,255,255}, {255,255,0}, {255,150,0}}setColorRGB(unpack(colortable[math.random(#colortable)]))