» codelab : http://codelab.fr/accueil » Forum : Processing : http://codelab.fr/processing » Texte verticale : http://codelab.fr/7242 Ceci est la version imprimable d'un sujet du forum, pour retourner à la version complète : Texte verticale |
cartide22 — 2020-02-15 13:04:51 |
Bonjour, |
Mushussu — 2020-02-15 16:30:18 |
Bonjour, PFont f; String message = "ROUGE"; void setup() { size(400, 400); f = createFont("Arial",20,true); } void draw() { background(255); fill(0); textFont(f); int y = 100; for (int i = 0; i < message.length(); i++) { text(message.charAt(i),100,y); y += 20; } noLoop(); } |