Last change
on this file since 1077 was 2, checked in by Dmitry A. Kuminov, 16 years ago |
Initially imported qt-all-opensource-src-4.5.1 from Trolltech.
|
File size:
355 bytes
|
Line | |
---|
1 | var ctx = document.getElementById('tutorial').getContext('2d');
|
---|
2 | for (i=0;i<6;i++){
|
---|
3 | for (j=0;j<6;j++){
|
---|
4 | ctx.strokeStyle = 'rgb(0,' + Math.floor(255-42.5*i) + ',' +
|
---|
5 | Math.floor(255-42.5*j) + ')';
|
---|
6 | ctx.beginPath();
|
---|
7 | ctx.arc(12.5+j*25,12.5+i*25,10,0,Math.PI*2,true);
|
---|
8 | ctx.stroke();
|
---|
9 | }
|
---|
10 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.