Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/inkPublic

Google Ink

License

NotificationsYou must be signed in to change notification settings

google/ink

The Ink library is a freehand stroke generation library. It produces smoothed,modeled stroke shapes with brush effect shaders as mesh-based vector graphics.

This library provides the core of the implementation of the Android JetpackInk module, whichis currently in alpha. While the implementation is well-tested, the developersof this library are not currently making hard guarantees about interfacestability. We probably will attempt to introduce a versioned release processafter the Jetpack module stable release.

How to Build and Test

Bazel

Prerequisites:

Ink can be built and tested from the repo root:

bazeltest --config=linux ink/...

Library Structure

Ink consists of a set of modules that can be used separately. You should onlyneed to include the parts of the library that you need.

 ┌──────────┐ ┌───────┐ │Rendering │ │Storage│ └────┬─────┘ └──┬────┘      │          │      ▼          │   ┌───────┐     │   │Strokes│◄────┘   └─┬────┬┘     │    │     │    ▼     │ ┌────────┐     │ │Geometry│     │ └───┬────┘     │     │     ▼     ▼ ┌─────┐ ┌─────┐ │Color│ │Types│ └─────┘ └─────┘
  • color: color spaces, encoding, and format conversion.
  • types: utility types; time, units, constants, small arrays.
  • geometry: geometric types (point, segment, triangle, rect, quad), meshes,transforms, utility functions, and algorithms (intersection, envelope).
  • strokes: the primaryStroke data type andInProgressStroke builder.
  • rendering: rendering utilities for strokes. Currently only has support forandroid.graphics.Mesh based rendering.
  • storage: Protobuf serialization utilities forStroke and related types.

Contributing

SeeCONTRIBUTING.md for details on sending a PR.

Contact

Use GitHub Issues to file feedback:https://github.com/google/ink/issues

About

Google Ink

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors6


[8]ページ先頭

©2009-2025 Movatter.jp