mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	 24a0baeb7f
			
		
	
	24a0baeb7f
	
	
	
		
			
			This PR fixes the issues that have arisen with #42 and it needs to be merged before https://github.com/gohugoio/hugoThemes/pull/600
		
			
				
	
	
		
			26 lines
		
	
	
		
			535 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			535 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| ---
 | |
| title: "Lines from center"
 | |
| date: 2019-03-04T22:15:42-03:00
 | |
| description: "this is a p5js sketch"
 | |
| libs:
 | |
|   js:
 | |
|     - https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.3/p5.min.js
 | |
| ---
 | |
| 
 | |
| <div id="sketch"></div>
 | |
| 
 | |
| <script>
 | |
|   var sketch = document.getElementById('sketch')
 | |
|   function setup() {
 | |
|     var canvas = createCanvas(windowWidth, windowHeight)
 | |
|     canvas.parent('#sketch')
 | |
|   }
 | |
| 
 | |
|   function draw() {
 | |
|     line(width/2, height/2, mouseX, mouseY)
 | |
|   }
 | |
| 
 | |
|   function windowResized() {
 | |
|     resizeCanvas(windowWidth, windowHeight);
 | |
|   }
 | |
| </script> |