mirror of
				https://git.sleeping.town/mirrors/foxy-moxy
				synced 2025-11-03 18:12:17 -08:00 
			
		
		
		
	use bezier curves instead of lines, so cat mouth is less sad
This commit is contained in:
		
							parent
							
								
									4d648a288f
								
							
						
					
					
						commit
						4625fe0f0b
					
				
					 1 changed files with 9 additions and 2 deletions
				
			
		| 
						 | 
					@ -105,8 +105,15 @@ function renderMouth(ctx, opts) {
 | 
				
			||||||
      break;
 | 
					      break;
 | 
				
			||||||
    case "cat":
 | 
					    case "cat":
 | 
				
			||||||
      ctx.moveTo(opts.x - opts.width/2, opts.y + opts.height/2);
 | 
					      ctx.moveTo(opts.x - opts.width/2, opts.y + opts.height/2);
 | 
				
			||||||
      ctx.lineTo(opts.x, opts.y - opts.height/2);
 | 
					      ctx.bezierCurveTo(opts.x - opts.width/2, opts.y + opts.height/2,
 | 
				
			||||||
      ctx.lineTo(opts.x + opts.width/2, opts.y + opts.height/2);
 | 
					        opts.x, opts.y + opts.height/2,
 | 
				
			||||||
 | 
					        opts.x, opts.y - opts.height/2
 | 
				
			||||||
 | 
					      )
 | 
				
			||||||
 | 
					      ctx.bezierCurveTo(
 | 
				
			||||||
 | 
					        opts.x, opts.y - opts.height/2,
 | 
				
			||||||
 | 
					        opts.x, opts.y + opts.height/2,
 | 
				
			||||||
 | 
					        opts.x + opts.width/2, opts.y + opts.height/2
 | 
				
			||||||
 | 
					      )
 | 
				
			||||||
      break;
 | 
					      break;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  ctx.stroke();
 | 
					  ctx.stroke();
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue