~/talk

Composable Sheep: A Canvas Story

Talkat droidcon New York 2022 · 2022-09-01..09-02· [android, creative-coding]
slides:none on file

Shows how Compose Canvas and the Canvas API let you build a fluffy sheep by combining drawCircle drawRect drawOval and transform helpers inside the provided drawScope with size from modifier and toPx conversions for pixel units The demo computes positions with basic trigonometry and geometry to generate multiple intersection points then constructs a Path using quadratic Bézier segments to make realistic fluff so the final composable sheep renders correctly in the preview and the repo contains the Kotlin code and math routines

AI-written summary · about

  1. 0:00Introduction
  2. 0:54Canvas basics explained
  3. 4:07Canvas in Jetpack Compose
  4. 10:48Drawing a basic chip
  5. 17:33Creating fluffy chip effect
  6. 22:27Advanced fluff with Bézier curves
  7. 30:13Why use Canvas
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.