For those that want to play with canvas_draw() textures, I have done some simple code to achieve that. Lets see you creations.
Code: Select all
---texture_carbonfiber1
my_canvas= canvas_add(0,0,800,500)
canvas_draw(my_canvas,function()
_rect(0,0,800,500)
_fill("#2a2a2a")
for i = 0,162 do
_move_to(0+(i*8),0)
_line_to(0,0+(i*8))
_stroke("#515151",1)
end
end)
Code: Select all
---texture_carbonfiber2
my_canvas= canvas_add(0,0,800,500)
canvas_draw(my_canvas,function()
_rect(0,0,800,500)
_fill("#2a2a2a")
for i = -1,133 do
for i2 = -1,83 do
_rotate(45,3+(i*6),3+(i2*6))
_rect(5+(i*6),0+(i2*6),6,6)
_stroke("#515151",0.5)
_rotate(-45,3+(i*6),3+(i2*6))
end
end
end)
Code: Select all
---texture_carbonfiber3
my_canvas= canvas_add(0,0,800,500)
canvas_draw(my_canvas,function()
_rect(0,0,800,500)
_fill("#2a2a2a")
for i = -1,100 do
for i2 = -1,62 do
_rotate(45,2+(i*8),4+(i2*8))
_rect(5+(i*8),0+(i2*8),8,8)
_stroke("#515151",0.5)
_rotate(-45,2+(i*8),4+(i2*8))
end
end
end)
Code: Select all
---texture_carbonfiber4
my_canvas= canvas_add(0,0,800,500)
canvas_draw(my_canvas,function()
_rect(0,0,800,500)
_fill("#2a2a2a")
for i = 0,100 do
for i2 = 0,62 do
_rotate(45,2+(i*8),4+(i2*8))
_rect(5+(i*8),0+(i2*8),6,6)
_stroke("#515151",0.5)
_rotate(-45,2+(i*8),4+(i2*8))
end
end
end)
Code: Select all
---texture_carbonfiber5
my_canvas= canvas_add(0,0,800,500)
canvas_draw(my_canvas,function()
_rect(0,0,800,500)
_fill("#2a2a2a")
for i = 0,80 do
for i2 = 0,50 do
_rotate(45,3+(i*10),3+(i2*10))
_rect(5+(i*10),0+(i2*10),6,6)
_stroke("#515151",1)
_rotate(-45,3+(i*10),3+(i2*10))
end
end
end)
Keith