# Harley-xk/MaLiang

iOS painting and drawing library based on Metal. 神笔马良有一支神笔（基于 Metal 的涂鸦绘图库）

Repository: https://github.com/Harley-xk/MaLiang
Canonical: https://ross.abutalabs.com/products/maliang
Language: Swift
License: MIT
License Family: permissive
Topics: painting, drawing, handwriting, doodle, ios, swift, metal
Last push: 2026-06-22T07:03:56+00:00

## Health v2 (maintenance only)
Score: 62/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 88, release rhythm 8, longevity 100
- inputs: {"age_days": 3474, "days_push": 72, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1493, forks 219 (observed 2026-08-28T04:04:52.751358+00:00)

## What it is
MaLiang is an iOS painting and drawing framework built on Apple's Metal, supporting textured strokes, handwriting, and Apple Pencil input. It offers features like undo/redo, zoom, vector content saving, and image export.

## Use cases
- add a drawing canvas to an iOS app
- implement handwriting or signature capture with Apple Pencil
- build a doodle or sketching app with custom brush textures
- render glowing or force-sensitive strokes using Metal
- export user drawings to images or save vector strokes to disk

## When to choose
- you need GPU-accelerated painting on iOS with Metal
- you want Apple Pencil and 3D Touch pressure support out of the box
- you need undo/redo, zoom, and vector stroke persistence in a drawing feature

## When to avoid
- you need cross-platform drawing on Android or web
- your minimum deployment target is below iOS 9 or you cannot use Metal
- you need a full-featured image editor rather than a painting canvas

## Facets
- artifact type: library
- maturity: active
- function: graphics, image-processing, ui-components
- domain: mobile-development, graphics, cross-platform
- platform: mac-catalyst
- tags: metal, painting, drawing, handwriting, doodle, apple-pencil, canvas, swift, ios, mobile

## Member repositories
- Harley-xk/MaLiang (main) score 62

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:52.751358+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:33:25.606094+00:00, confidence not recorded.
  - readme: https://github.com/Harley-xk/MaLiang (fetched 2026-08-28T04:04:52.751358+00:00, sha 8e91ac2e010a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
