1. PROTECTOR DE PANTALLA (ELIPSE EN
DIFERENTES COLORES)
PROGRAMACION ENN GAMBAS 2.0
PUBLIC C AS Integer
PUBLIC r AS Integer
PUBLIC CO AS Integer
PUBLIC CV AS Integer
PUBLIC SUB _new()
END
2. PUBLIC SUB Form_Open()
END
PUBLIC SUB Button1_Click()
IF Button1.Text = "INICIO"
Timer1.Enabled = TRUE
Button1.Caption = "PARAR"
ELSE
Timer1.Enabled = FALSE
Button1.Caption = "INICIO"
ENDIF
END
PUBLIC SUB Button2_Click()
ME.Close
END
PUBLIC SUB Timer1_Timer()
C = Int(Rnd() * 500)
CO = Int(Rnd() * 500)
CV = Int(Rnd() * 20)
Draw.Begin(Area1)
Draw.FillColor = Color.RGB((250 + C), (3 + CO), (C + CO))
Draw.FillStyle = Fill.Solid
Draw.Ellipse(C, CO, 30, 15)
Draw.End
END