Circle.sel
#!./Selene
Selene.UseDirectFB("--dfb:quiet,no-vt")
DirectFB.init( DirectFB.CooperativeConst('FULLSCREEN') );
srf = SelSurface.create { caps=SelSurface.CapabilityConst('PRIMARY') } local w,h = srf:GetSize() local r = w/3
if h < w then
r = h/3
end
srf:SetColor( 0xff, 0x80, 0x80, 0x80) srf:DrawCircle( w/2, h/2, r )
srf:DrawCircle( w/2, h/2, r+05, SelSurface.CircleQuarterConst('Q1') )
srf:DrawCircle( w/2, h/2, r+10, SelSurface.CircleQuarterConst('Q2') )
srf:DrawCircle( w/2, h/2, r+15, SelSurface.CircleQuarterConst('Q3') )
srf:DrawCircle( w/2, h/2, r+20, SelSurface.CircleQuarterConst('Q4') )
srf:SetColor( 0x80, 0x80, 0x80, 0x80) srf:FillCircle( w/2, h/2, r-10 )
srf:SetColor( 0xff, 0x00, 0x00, 0x00)
srf:FillCircle( w/2, h/2, r-20, SelSurface.CircleQuarterConst('Q1') )
srf:SetColor( 0x00, 0xff, 0x00, 0x00)
srf:FillCircle( w/2, h/2, r-20, SelSurface.CircleQuarterConst('Q2') )
srf:SetColor( 0x00, 0x00, 0xff, 0x00)
srf:FillCircle( w/2, h/2, r-20, SelSurface.CircleQuarterConst('Q3') )
srf:SetColor( 0xff, 0xff, 0x00, 0x00)
srf:FillCircle( w/2, h/2, r-20, SelSurface.CircleQuarterConst('Q4') )
print "Hit 'enter' key to exit"
io.stdin:read'*l'
srf:destroy()