Skip to content

suti/painter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

painter

painter is a simply 2D graphics library. api interface like canvas api

online demo

feature

CanvasRenderingContext2D

  • arc ✅
  • arcTo ❌
  • beginPath ✅
  • bezierCurveTo ✅
  • canvas ✅
  • clearRect ✅
  • clip ✅
    • path(parameter) ✅
  • closePath ✅
  • createConicGradient ❌
  • createImageData ❌
  • createLinearGradient ❌
  • createPattern ❌
  • createRadialGradient ❌
  • direction ❌
  • drawFocusIfNeeded ❌
  • drawImage ❌
    • ImageBitmap as source image ❌
    • SVGImageElement as source image ❌
  • ellipse ❌
  • fill ✅
    • path parameter ✅
  • fillRect ✅
  • fillStyle ✅basic
  • fillText ✅
  • filter ❌
  • font ✅basic
  • fontKerning ❌
  • fontStretchExperimental ❌
  • fontVariantCapsExperimental ❌
  • getContextAttributes
  • getImageData ❌
  • getLineDash ❌
  • getTransform ✅
  • globalAlpha ❌
  • globalCompositeOperation ❌
  • imageSmoothingEnabled ❌
  • imageSmoothingQuality ❌
  • isContextLostExperimental ❌
  • isPointInPath ❌
    • path parameter ❌
  • isPointInStroke ❌
    • path parameter ❌
  • letterSpacingExperimental ❌
  • lineCap ✅
  • lineDashOffset ❌
  • lineJoin ✅
  • lineTo ✅
  • lineWidth ✅
  • measureText ❌
  • miterLimit ✅
  • moveTo ✅
  • putImageData
  • quadraticCurveTo ✅
  • rect ✅
  • resetExperimental ❌
  • resetTransform ✅
  • restore ✅
  • rotate ✅
  • roundRect ❌
  • save ✅
  • scale ✅
  • scrollPathIntoViewExperimental ❌
  • setLineDash ✅
  • setTransform ✅
    • Accept matrix object as parameter
  • shadowBlur ❌
  • shadowColor ❌
  • shadowOffsetX ❌
  • shadowOffsetY ❌
  • stroke ✅
    • path parameter ✅
  • strokeRect ✅
  • strokeStyle ✅baisc
  • strokeText ✅
  • textAlign ❌
  • textBaseline ❌
  • textRenderingExperimental ❌
  • transform ✅
  • translate ✅
  • wordSpacingExperimental ❌

About

a simply 2d graphics library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published