ISN informatique
angeliqueisn
Messages postés
1
Statut
Membre
-
Utilisateur anonyme -
Utilisateur anonyme -
Bonjour je ne comprend pas pourquoi mon algorithme ne fonctionne pas, je suis bloquée. Pouvez-vous m'aider s'il vous plaît ? J'utilise comme logiciel TI-Nspire CAS Studdent
Merci d'avance
x=20
y=40
largeur_ecran= x,y
hauteur_ecran= x,y
print(largeur_ecran)
print(hauteur_ecran)
function on.paint(gc)
gc: setColorRGB(250,70,100)
gc:fillArc(x,y, 150, 150,0,360)
end
function on.arrowRight()
x=x+10
if x> largeur_ecran then
x=0
end
platform.window:invalidate()
end
function on.arrowLeft()
x=x-10
if x<0 then
x=largeur_ecran
end
platform.window:invalidate()
end
function on.arrowUp()
y=y-10
if y<0 then
y=hauteur_ecran
end
platform.window:invalidate()
end
function on.arrowDown()
y=y+10
if y>hauteur_ecran then
y=0
end
platform.window:invalidate()
end
Merci d'avance
A voir également:
- ISN informatique
- Le code ascii en informatique - Guide
- Jargon informatique - Télécharger - Bureautique
- Que veut dire url en informatique - Guide
- Souris informatique - Guide
- Que veut dire caster en informatique - Forum Box et Streaming vidéo