mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:12:43 +00:00 
			
		
		
		
	 9d8565cf9a
			
		
	
	
		9d8565cf9a
		
	
	
	
	
		
			
			This is pretty limited since we don't have wholesale mapping through the context transform, but we have to start somewhere. :^)
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			311 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			311 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <html>
 | |
|     <canvas id=c width=200 height=200></canvas>
 | |
|     <script>
 | |
|         c = document.getElementById('c');
 | |
|         x = c.getContext('2d');
 | |
|         x.strokeStyle = 'black';
 | |
|         for (i = 0; i < 8; ++i) {
 | |
|             x.strokeRect(50, 50, 50, 50);
 | |
|             x.rotate(0.05);
 | |
|         }
 | |
|     </script>
 | |
| </html>
 |