Stap 6: Inzicht in de Code â de deksel
DEKSEL
Als (yWert < 100) {lidZahl = a17;}
Als (yWert < 90) {lidZahl = a16;}
Als (yWert < 78) {lidZahl = a15;}
Als (yWert < 66) {lidZahl = a14;}
Als (yWert < 54) {lidZahl = a13;}
Als (yWert < 42) {lidZahl = a12;}
Als (yWert < 30) {lidZahl = a11;}
Als (yWert < 18) {lidZahl = a10;}
Als (yWert < 6) {lidZahl = a9;}
Als (yWert < -6) {lidZahl = a8;}
Als (yWert < -18) {lidZahl = a7;}
Als (yWert < -30) {lidZahl = a6;}
Als (yWert <-42) {lidZahl = a5;}
Als (yWert <-54) {lidZahl = a4;}
Als (yWert <-66) {lidZahl = a3;}
Als (yWert <-78) {lidZahl = a2;}
Als (yWert <-90) {lidZahl = a1;}
Als (blinzelt == false) {}
afbeelding (lidZahl, breedte/2, hoogte / 2 + 12);}
... En in het einde had ik om te controleren of ze is niet knipperen terwijl het juiste beeld wordt weergegeven.