Subversion-Projekte lars-tiefland.ci

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
875 lars 1
var doc = new jsPDF();
2
 
3
// I know the proper spelling is colour ;)
4
doc.setTextColor(100);
5
doc.text(20, 20, 'This is gray.');
6
 
7
doc.setTextColor(150);
8
doc.text(20, 30, 'This is light gray.');
9
 
10
doc.setTextColor(255, 0, 0);
11
doc.text(20, 40, 'This is red.');
12
 
13
doc.setTextColor(0, 255, 0);
14
doc.text(20, 50, 'This is green.');
15
 
16
doc.setTextColor(0, 0, 255);
17
doc.text(20, 60, 'This is blue.');