🎨 Complete Canvas API Test Suite

📋 API Coverage Test

This page tests every single Canvas 2D API function implemented in GURT:

  • Basic Drawing: fillRect, strokeRect, clearRect, drawCircle, drawText
  • Path Drawing: beginPath, closePath, moveTo, lineTo, arc, stroke, fill
  • Transformations: save, restore, translate, rotate, scale
  • Advanced Paths: quadraticCurveTo, bezierCurveTo
  • Styling: setStrokeStyle, setFillStyle, setLineWidth, setFont
  • Text Measurement: measureText
  • Shader Support: withContext("shader"), source

Basic Drawing Functions

Rectangle and circle primitives

Path-Based Drawing

Paths, lines, arcs, and shapes

Transformations

Translate, rotate, scale, save/restore

Curves & Advanced Paths

Quadratic and Bezier curves

Styles & Text

Colors, line widths, fonts, text measurement

Complex Composition

Multiple techniques combined

Shader Canvas Support

Custom fragment shader with animated colors

✅ Test Results

All canvas functions should render correctly above. Check the browser console for any errors.

This test demonstrates compatibility with HTML5 Canvas API standards.