SlideShare a Scribd company logo
1 of 2
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
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

More Related Content

What's hot

C programming on the determination of shear force, bending moment, shear stre...
C programming on the determination of shear force, bending moment, shear stre...C programming on the determination of shear force, bending moment, shear stre...
C programming on the determination of shear force, bending moment, shear stre...Mamun Mehedee
 
Teclas de acceso rrapido
Teclas de acceso rrapidoTeclas de acceso rrapido
Teclas de acceso rrapidoJorge Pedroza
 
Calculation of first 100 numbers using do-until loop
Calculation of first 100 numbers using do-until loopCalculation of first 100 numbers using do-until loop
Calculation of first 100 numbers using do-until loopAditi Bhushan
 
Can you count on your computer?
Can you count on your computer?Can you count on your computer?
Can you count on your computer?Hamed Zakerzadeh
 
Ejemplo En Gambas
Ejemplo En GambasEjemplo En Gambas
Ejemplo En Gambaseduann
 
Program to reflecta triangle
Program to reflecta triangleProgram to reflecta triangle
Program to reflecta triangleTanya Makkar
 
El nuevo objeto para internacionalización y localización Intl
El nuevo objeto para internacionalización y localización IntlEl nuevo objeto para internacionalización y localización Intl
El nuevo objeto para internacionalización y localización IntlFrancisco Javier Arce Anguiano
 
اختصارات لوحة المفاتيح فى الورد
اختصارات لوحة المفاتيح فى الورداختصارات لوحة المفاتيح فى الورد
اختصارات لوحة المفاتيح فى الوردeslam fighter
 
Visual Basic
Visual BasicVisual Basic
Visual BasicVj NiroSh
 

What's hot (16)

Om (Cont.)
Om (Cont.)Om (Cont.)
Om (Cont.)
 
C programming on the determination of shear force, bending moment, shear stre...
C programming on the determination of shear force, bending moment, shear stre...C programming on the determination of shear force, bending moment, shear stre...
C programming on the determination of shear force, bending moment, shear stre...
 
Gambas
GambasGambas
Gambas
 
Langrange method for MATLAB Code
Langrange method for MATLAB CodeLangrange method for MATLAB Code
Langrange method for MATLAB Code
 
Newton's method for MATLAB Code
Newton's method for MATLAB CodeNewton's method for MATLAB Code
Newton's method for MATLAB Code
 
Teclas de acceso rrapido
Teclas de acceso rrapidoTeclas de acceso rrapido
Teclas de acceso rrapido
 
Calculation of first 100 numbers using do-until loop
Calculation of first 100 numbers using do-until loopCalculation of first 100 numbers using do-until loop
Calculation of first 100 numbers using do-until loop
 
Introduction to Processing
Introduction to ProcessingIntroduction to Processing
Introduction to Processing
 
Can you count on your computer?
Can you count on your computer?Can you count on your computer?
Can you count on your computer?
 
Ejemplo En Gambas
Ejemplo En GambasEjemplo En Gambas
Ejemplo En Gambas
 
Program to reflecta triangle
Program to reflecta triangleProgram to reflecta triangle
Program to reflecta triangle
 
R-Excel Integration
R-Excel IntegrationR-Excel Integration
R-Excel Integration
 
Tower of HANOI
Tower of HANOITower of HANOI
Tower of HANOI
 
El nuevo objeto para internacionalización y localización Intl
El nuevo objeto para internacionalización y localización IntlEl nuevo objeto para internacionalización y localización Intl
El nuevo objeto para internacionalización y localización Intl
 
اختصارات لوحة المفاتيح فى الورد
اختصارات لوحة المفاتيح فى الورداختصارات لوحة المفاتيح فى الورد
اختصارات لوحة المفاتيح فى الورد
 
Visual Basic
Visual BasicVisual Basic
Visual Basic
 

Viewers also liked (9)

Tics
TicsTics
Tics
 
Calculadora
CalculadoraCalculadora
Calculadora
 
Aprendamos
AprendamosAprendamos
Aprendamos
 
Juego
JuegoJuego
Juego
 
Calculadora
CalculadoraCalculadora
Calculadora
 
Cronometro
CronometroCronometro
Cronometro
 
Firmas Digitales
Firmas DigitalesFirmas Digitales
Firmas Digitales
 
Protector De Pantalla
Protector De PantallaProtector De Pantalla
Protector De Pantalla
 
Investiguemos física 10°
Investiguemos física 10°Investiguemos física 10°
Investiguemos física 10°
 

Protector De Pantalla

  • 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