Subversion-Projekte lars-tiefland.cienc

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
9 lars 1
var doc = new jsPDF();
2
 
3
// Empty square
4
doc.rect(20, 20, 10, 10);
5
 
6
// Filled square
7
doc.rect(40, 20, 10, 10, 'F');
8
 
9
// Empty red square
10
doc.setDrawColor(255,0,0);
11
doc.rect(60, 20, 10, 10);
12
 
13
// Filled square with red borders
14
doc.setDrawColor(255,0,0);
15
doc.rect(80, 20, 10, 10, 'FD');
16
 
17
// Filled red square
18
doc.setDrawColor(0);
19
doc.setFillColor(255,0,0);
20
doc.rect(100, 20, 10, 10, 'F');
21
 
22
 // Filled red square with black borders
23
doc.setDrawColor(0);
24
doc.setFillColor(255,0,0);
25
doc.rect(120, 20, 10, 10, 'FD');
26
 
27
// Black sqaure with rounded corners
28
doc.setDrawColor(0);
29
doc.setFillColor(255, 255, 255);
30
doc.roundedRect(140, 20, 10, 10, 3, 3, 'FD');