All Projects β†’ aloisdeniel β†’ Built_vector

aloisdeniel / Built_vector

Licence: mit
Generate Flutter vector code from a subset of SVG files.

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to Built vector

React Designer
It's not art
Stars: ✭ 1,762 (+5239.39%)
Mutual labels:  vector, svg
Richpath
πŸ’ͺ Rich Android Path. 🀑 Draw as you want. πŸŽ‰ Animate much as you can.
Stars: ✭ 2,259 (+6745.45%)
Mutual labels:  vector, svg
Plutovg
Tiny 2D vector graphics library in C
Stars: ✭ 141 (+327.27%)
Mutual labels:  vector, svg
Maker.js
πŸ“βš™ 2D vector line drawing and shape modeling for CNC and laser cutters.
Stars: ✭ 1,185 (+3490.91%)
Mutual labels:  vector, svg
Mojs
The motion graphics toolbelt for the web
Stars: ✭ 17,189 (+51987.88%)
Mutual labels:  shape, svg
Ml Logos
πŸ“· ✨ SVG logos for various ML libraries
Stars: ✭ 99 (+200%)
Mutual labels:  vector, svg
Feathericon
simply generic vector icon collection - including sketch file, svg files, and font files.
Stars: ✭ 178 (+439.39%)
Mutual labels:  vector, svg
Aegis Icons
Unofficial 2FA entry icons for open source Android authenticator Aegis
Stars: ✭ 153 (+363.64%)
Mutual labels:  vector, svg
Mega Doodles Pack
πŸ”₯ Big vector pack with hand-drawn doodles for presentations, social media, blog posts and so on
Stars: ✭ 258 (+681.82%)
Mutual labels:  vector, svg
Vectorlogozone
3,000+ gorgeous SVG logos, perfect for your README or credits page
Stars: ✭ 239 (+624.24%)
Mutual labels:  vector, svg
Jquery Mapael
jQuery plugin based on raphael.js that allows you to display dynamic vector maps
Stars: ✭ 981 (+2872.73%)
Mutual labels:  vector, svg
Pts
A library for visualization and creative-coding
Stars: ✭ 4,628 (+13924.24%)
Mutual labels:  vector, svg
Gooey React
The gooey effect for React, used for shape blobbing / metaballs (0.5 KB) 🧽
Stars: ✭ 219 (+563.64%)
Mutual labels:  shape, svg
Svg.skia
An SVG rendering library.
Stars: ✭ 122 (+269.7%)
Mutual labels:  vector, svg
Free Gophers Pack
✨ This pack of 100+ gopher pictures and elements will help you to build own design of almost anything related to Go Programming Language: presentations, posts in blogs or social media, courses, videos and many, many more.
Stars: ✭ 2,343 (+7000%)
Mutual labels:  vector, svg
Magicasakura
MagicaSakura 是 Android ε€šδΈ»ι’˜ζ‘†ζžΆγ€‚~ is an Android multi theme library which supporting both daily colorful theme and night theme.
Stars: ✭ 3,455 (+10369.7%)
Mutual labels:  vector, svg
Azure Design
Here you will find my complete Azure Visio Stencil and bonus SVG and PNG versions for all of the Azure Service and configuration items.
Stars: ✭ 470 (+1324.24%)
Mutual labels:  shape, svg
Gantt Elastic
Gantt Chart [ javascript gantt chart, gantt component, vue gantt, vue gantt chart, responsive gantt, project manager , vue projects ]
Stars: ✭ 869 (+2533.33%)
Mutual labels:  svg
Mapsforge
Vector map library and writer - running on Android and Desktop.
Stars: ✭ 885 (+2581.82%)
Mutual labels:  vector
Vectorskinning
SVG Image deformation tool. Support cubic Beizer spline only.
Stars: ✭ 11 (-66.67%)
Mutual labels:  svg

built_vector

Generates Flutter vector code from minimalist SVG-like files.

Usage

> pub global activate built_vector
> pub global run built_vector -i <assets file path> -o <output dart file>

A class named accordingly to your assets node's name, containing a void Paint(Canvas canvas, Size size, {Color fill}) function for each vector node.

You can then use them with a custom painter, like with the sample/lib/vectors.dart Vector widget.

File format

Assets

An asset catalog is a collection of assets (vector only at the moment).

<assets name="icons">
    <vector ... />
    <vector ... />
    <vector ... />
</assets>

Vector

A vector is a collection of filled shapes.

It has several properties :

  • name (required) : the identifier of the vector asset
  • viewBox (required) : a box (<x> <y> <width> <height>)that contains all the shapes.
  • fill : a default fill brush for shapes
<vector name="warning" viewBox="0 0 24 24" fill="#231F20">
    <rect ... />
    <circle ... />
    <path ... />
</vector>

Shape

A shape is a set of instructions to build an area to fill with a brush. Currently it can be rect, circle, path.

It has several properties :

  • fill : a default fill brush for shapes
  • rect - x, y, width, height : position and size
  • circle - cx, cy, r : center coordinates and radius
  • path - d : SVG path data
<vector name="warning" viewBox="0 0 24 24" fill="#231F20">
    <rect x="15" y="14" width="31" height="28" />
    <circle cx="45.5" cy="42.5" r="15.5" fill="#C4C4C4" />
    <path d="M12 17C12.5523 17 13 16.5523 13 16C13 15.4477 12.5523 15 12 15C11.4477 15 11 15.4477 11 16C11 16.5523 11.4477 17 12 17Z" />
</vector>

Sample

To generate the sample, execute :

> pub global run built_vector -i sample/assets/icons.assets -o sample/lib/icons.g.dart

The sample/assets/icons.assets file is generated as sample/lib/icons.g.dart.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].