Added some presets to README.md
This commit is contained in:
		@@ -75,3 +75,9 @@ $ !                               ; Clear temporary storage
 | 
				
			|||||||
?5                                ; random:   0..5
 | 
					?5                                ; random:   0..5
 | 
				
			||||||
45'                               ; degree:   45/365
 | 
					45'                               ; degree:   45/365
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#Presets
 | 
				
			||||||
 | 
					##Radial Brush
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					> 600,400 45' 3;> 600,400 90' 3;> 600,400 135' 3;> 600,400 180' 3;> 600,400 225' 3;> 600,400 270' 3;> 600,400 315' 3
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
@@ -22,8 +22,8 @@
 | 
				
			|||||||
  </head>
 | 
					  </head>
 | 
				
			||||||
  <body>
 | 
					  <body>
 | 
				
			||||||
    <div id='ronin'>
 | 
					    <div id='ronin'>
 | 
				
			||||||
      <canvas id='overlay' width="1280" height="800"></canvas>
 | 
					      <canvas id='overlay' width="1480" height="800"></canvas>
 | 
				
			||||||
      <canvas id="workspace" width="1280" height="800" style="background:#efefef"></canvas>
 | 
					      <canvas id="workspace" width="1480" height="800" style="background:#efefef"></canvas>
 | 
				
			||||||
      <div id ='commander'>
 | 
					      <div id ='commander'>
 | 
				
			||||||
        <div id='commander_hint'>Hey</div>
 | 
					        <div id='commander_hint'>Hey</div>
 | 
				
			||||||
        <input id='commander_input'/>
 | 
					        <input id='commander_input'/>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -69,6 +69,10 @@ function Keyboard()
 | 
				
			|||||||
      if(multi[1]){commander.active(multi[1].split(" "));}
 | 
					      if(multi[1]){commander.active(multi[1].split(" "));}
 | 
				
			||||||
      if(multi[2]){commander.active(multi[2].split(" "));}
 | 
					      if(multi[2]){commander.active(multi[2].split(" "));}
 | 
				
			||||||
      if(multi[3]){commander.active(multi[3].split(" "));}
 | 
					      if(multi[3]){commander.active(multi[3].split(" "));}
 | 
				
			||||||
 | 
					      if(multi[4]){commander.active(multi[4].split(" "));}
 | 
				
			||||||
 | 
					      if(multi[5]){commander.active(multi[5].split(" "));}
 | 
				
			||||||
 | 
					      if(multi[6]){commander.active(multi[6].split(" "));}
 | 
				
			||||||
 | 
					      if(multi[7]){commander.active(multi[7].split(" "));}
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    else{
 | 
					    else{
 | 
				
			||||||
      commander.active(cmd.split(" "));
 | 
					      commander.active(cmd.split(" "));
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -45,14 +45,13 @@ function Pointer(offset = new Position(), color = new Color('000000'))
 | 
				
			|||||||
  this.position = function()
 | 
					  this.position = function()
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    if(this.angle){
 | 
					    if(this.angle){
 | 
				
			||||||
      
 | 
					      var angle_radian = this.angle * Math.PI / 180;
 | 
				
			||||||
      var deltaX = ronin.brush.position.x - this.offset.x;
 | 
					      var deltaX = ronin.brush.position.x - this.offset.x;
 | 
				
			||||||
      var deltaY = ronin.brush.position.y - this.offset.y;
 | 
					      var deltaY = ronin.brush.position.y - this.offset.y;
 | 
				
			||||||
      var t = Math.atan2(deltaY, deltaX);
 | 
					      var t = Math.atan2(deltaY, deltaX) + angle_radian;
 | 
				
			||||||
      var radius = 45;
 | 
					      var radius = ronin.brush.position.distance_to(this.offset);
 | 
				
			||||||
      var x = Math.cos(t) * radius;
 | 
					      var x = Math.cos(t) * radius;
 | 
				
			||||||
      var y = Math.sin(t) * radius;
 | 
					      var y = Math.sin(t) * radius;
 | 
				
			||||||
      
 | 
					 | 
				
			||||||
      return new Position(x + this.offset.x,y + this.offset.y);
 | 
					      return new Position(x + this.offset.x,y + this.offset.y);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    else if(this.mirror && this.mirror.width > 0){
 | 
					    else if(this.mirror && this.mirror.width > 0){
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,7 @@ function Canvas(element)
 | 
				
			|||||||
  
 | 
					  
 | 
				
			||||||
  this.active = function(cmd)
 | 
					  this.active = function(cmd)
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    if(cmd.bang()){ clear(); }
 | 
					    if(cmd.bang()){ this.clear(); }
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    if(cmd.rect()){
 | 
					    if(cmd.rect()){
 | 
				
			||||||
      this.resize(cmd.rect());
 | 
					      this.resize(cmd.rect());
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user