|

楼主 |
发表于 2021-8-16 09:51:33
|
显示全部楼层
function on_init()
end
local j
function on_draw(screen)
if screen == 0 then
start_timer(0,1000,1,0)
set_pen_color(0x0000)
draw_circle(400,250,150,0)
draw_circle(400,250,200,0)
set_pen_color(0xFFE0)
draw_line(400,250,400,100,2)
set_pen_color(0xF8200)
draw_line(400,250,529.9,325,2)
set_pen_color(0x07E0)
draw_line(400,250,270.1,325,2)
for i=10,200 do
if i%10==0 then
set_pen_color(0xFFE0)
draw_line(400,250,400+i,50,2)
set_pen_color(0xffff)
draw_line(400,250,400+i,50,4)
j=i
end
end
set_pen_color(0xFFE0)
draw_line(400,250,400+j,50,2)
set_pen_color(0xF800)
draw_line(400,250,573.2,350,2)
set_pen_color(0x07E0)
draw_line(400,250,240.1,350,2)
set_pen_color(0x0000)
draw_circle(400,250,150,0)
draw_circle(400,250,200,0)
end
end
function on_timer(timer_id)
if timer_id==0 then
function on_draw(screen)
if screen == 0 then
j=j+3
set_pen_color(0xFFE0)
draw_line(400,250,400+j,50,2)
set_pen_color(0xF800)
draw_line(400,250,573.2,350,2)
set_pen_color(0x07E0)
draw_line(400,250,240.1,350,2)
set_pen_color(0x0000)
draw_circle(400,250,150,0)
draw_circle(400,250,200,0)
end
end
end
end[img][/img] |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|