Skip to content

Examples ​

The repo ships a demo app (packages/example) with 18 live scenes covering the whole API surface. Run them on a device or simulator:

bash
git clone https://github.com/sanjiguan111/scumble && cd scumble
pnpm install
pnpm example:ios      # or: android

Every demo is a single self-contained component under packages/example/src/demos/ — the table below links each one to its source and to the guide page that explains the topic.

DemoWhat it showsSourceGuide
ShapesCircle · Rect · RRect · fill/stroke · opacityShapesDemo.tsxShapes
GradientLinear · radial · sweep · conical · gradient strokeGradientDemo.tsxGradients
PathsSVG d · Path2D · arcs · path trim animationPathsDemo.tsxShapes
AnimationNative interpolation · zero JS per frameAnimationDemo.tsxAnimation
PlaybackcreateAnimation().controller · pause / seek / finishPlaybackDemo.tsxPlayback control
Path OpsPath2D.op — union · intersect · difference · xorPathOpsDemo.tsxShapes
FiltersBlur · DropShadow · ColorMatrix · ColorBlend · MaskBlurFiltersDemo.tsxFilters
Transformtranslate · scale · rotate · nested groups · matrixTransformDemo.tsxTransforms & clipping
ClipClipRect · ClipRRect · ClipPath · difference · paint inheritanceClipDemo.tsxTransforms & clipping
Multi-PaintMulti-<Paint> passes · per-pass opacity/blendMode/dashMultiPaintDemo.tsxPainting
Paintstroke cap/join/width · dash · fillRulePaintDemo.tsxPainting
Blendmultiply · screen · difference · Group inheritanceBlendDemo.tsxPainting
Interactivetap to recolor · mount/unmount · JS-driven progressInteractiveDemo.tsxAnimation
ViewportviewPort scaling compared side by sideViewportDemo.tsxCanvas & viewPort
Imagedata URI · http(s) · seven fit modes · sampling · async decodeImageDemo.tsxImages
ImageShaderBitmap fills · repeat/mirror/decal · textured strokeImageShaderDemo.tsxGradients
ParagraphRich text · wrapping & alignment · maxLines · onLayoutParagraphDemo.tsxText
BiDiRTL · auto-detection · mixed-direction runs · visual alignmentBiDiDemo.tsxText

Last updated:

Released under the Apache License 2.0.