Herunterladen Inhalt Inhalt Diese Seite drucken

Beispiel 1: Unterschiedliche Drawstyles - ELECTRONIC ASSEMBLY EA uniTFT Serie Bedienungsanleitung

Inhaltsverzeichnis

Werbung

Styles - Befehlsbeispiele

Beispiel 1: Unterschiedliche DrawStyles

Es werden 8 Rechtecke platziert die mit unterschiedlichen DrawStyles gefüllt werden.
Macro: DrawStyles
/**Define 8 different draw styles
/**Draw Style 1, Solid Color Filling (brush), no outline (pen)
#CFC
1, $FF008F,
100
#CLD
1
/**Draw Style 2, no Filling (brush), 8 dots outline (pen)
#CFD
2
#CLS
2, $FFFFFF, 100, 8,
/**Draw Style 3, Solid Color Filling (brush), 10 dots outline (pen)
#CFC
3, $00009F,
50
#CLS
3, $7F7F7F, 100, 10,
/**Draw Style 4, no Filling (brush), 5 dots dashed outline (pen)
#CFD
4
#CLS
4, $FFFFFF, 100, 5, 1,
#CDP
2, 0, 20,10,
3,10
dots off, 3 dots on, 10 dots off and start again
/**Draw Style 5, linear filling (brush), no outline (pen)
#CFL
5, 1,
45
wih 45°
#CLD
5
#CCR
1, 0,$FF0000,100, 50,$00FF00,100,
/**Draw Style 6, radial filling (brush), no outline (pen), animate ramp
#CFR
6, 2,
5000,5
to anchor 5
Technische Änderungen vorbehalten. Wir übernehmen keine Haftung für Druckfehler und
Applikationsbeispiele
EA uniTFT050-A
/**magenta with no transparency
/**No line
/**no filling
2
/**white frame with 5 dots outline and 90° corners
/**dark blue with 50% transparency
1
/**grey frame with 10 dots outline and ronded corners
/**no filling
2
/**white outline, 5 dots, use dash pattern 2
/**define dash pattern 2, no offset, 20 dots on, 10
100,$0000FF,100
/**use color ramp 1 and turn
/**No line
/**R->G->B color ramp
/**use color ramp 2, set focus
152 / 172

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis