source: trunk/examples/script/context2d/scripts/rgba.js@ 983

Last change on this file since 983 was 2, checked in by Dmitry A. Kuminov, 16 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 549 bytes
Line 
1var ctx = document.getElementById('tutorial').getContext('2d');
2
3 // Draw background
4 ctx.fillStyle = 'rgb(255,221,0)';
5 ctx.fillRect(0,0,150,37.5);
6 ctx.fillStyle = 'rgb(102,204,0)';
7 ctx.fillRect(0,37.5,150,37.5);
8 ctx.fillStyle = 'rgb(0,153,255)';
9 ctx.fillRect(0,75,150,37.5);
10 ctx.fillStyle = 'rgb(255,51,0)';
11 ctx.fillRect(0,112.5,150,37.5);
12