All Projects → syrel → Sparta

syrel / Sparta

Licence: mit
Sparta on top of Moz2D for Smalltalk

Programming Languages

smalltalk
420 projects

Projects that are alternatives of or similar to Sparta

cidrawing
A vector graphics library for Android
Stars: ✭ 35 (+169.23%)
Mutual labels:  vector-graphics
Svgtovectordrawableconverter
Batch converter of SVG images to Android vector drawable XML resource files. Online version of the converter is here:
Stars: ✭ 341 (+2523.08%)
Mutual labels:  vector-graphics
Zrender
A lightweight graphic library providing 2d draw for Apache ECharts
Stars: ✭ 5,122 (+39300%)
Mutual labels:  vector-graphics
niji
Generic 2D graphics library for C++14
Stars: ✭ 26 (+100%)
Mutual labels:  vector-graphics
Luxor.jl
Simple drawings using vector graphics; Cairo "for tourists!"
Stars: ✭ 293 (+2153.85%)
Mutual labels:  vector-graphics
Trufont
TruFont is a streamlined and hackable font editor. À l’ancienne.
Stars: ✭ 382 (+2838.46%)
Mutual labels:  vector-graphics
PrettyNSharp
Create beautiful and graphically scalable UI controls for your C#/WPF apps.
Stars: ✭ 43 (+230.77%)
Mutual labels:  vector-graphics
Macsvg
macSVG - An open-source macOS app for designing HTML5 SVG (Scalable Vector Graphics) art and animation with a WebKit web view ➤➤➤
Stars: ✭ 789 (+5969.23%)
Mutual labels:  vector-graphics
Vg Renderer
A vector graphics renderer for bgfx, based on ideas from NanoVG and ImDrawList (Dear ImGUI)
Stars: ✭ 338 (+2500%)
Mutual labels:  vector-graphics
Awesome Plotters
A curated list of code and resources for computer-controlled drawing machines and other visual art robots.
Stars: ✭ 495 (+3707.69%)
Mutual labels:  vector-graphics
ttgo-hershey-fonts
MicroPython Hershey font demo for the TTGO-LCD board
Stars: ✭ 22 (+69.23%)
Mutual labels:  vector-graphics
Vpype
The Swiss-Army-knife command-line tool for plotter vector graphics.
Stars: ✭ 292 (+2146.15%)
Mutual labels:  vector-graphics
Scour
Scour - An SVG Optimizer / Cleaner
Stars: ✭ 443 (+3307.69%)
Mutual labels:  vector-graphics
AsyPad
A simple drawing tool that can convert diagrams into Asymptote code.
Stars: ✭ 18 (+38.46%)
Mutual labels:  vector-graphics
Mathsharp
A vector and matrix library written in C# using hardware intrinsics
Stars: ✭ 616 (+4638.46%)
Mutual labels:  vector-graphics
tfont
tfont is a font library that writes to JSON.
Stars: ✭ 21 (+61.54%)
Mutual labels:  vector-graphics
Androidtoapplevectorlogo
An Android app demoing pathmorphing with AnimatedVectorDrawables
Stars: ✭ 344 (+2546.15%)
Mutual labels:  vector-graphics
Graphicsjs
A lightweight JavaScript graphics library with the intuitive API, based on SVG/VML technology.
Stars: ✭ 937 (+7107.69%)
Mutual labels:  vector-graphics
Svg
Fork of the ms svg library (http://svg.codeplex.com/)
Stars: ✭ 676 (+5100%)
Mutual labels:  vector-graphics
Notekit
A GTK3 hierarchical markdown notetaking application with tablet support.
Stars: ✭ 489 (+3661.54%)
Mutual labels:  vector-graphics

Sparta Build Status Build status Coverage Status

Sparta is an almost stateless vector graphics API for Pharo that provides bindings to the Moz2D rendering backend. Moz2D is the extracted graphical engine from Mozilla Firefox compiled as standalone shared library together with the extern C bindings required to call the engine from Pharo.

Documentation

Install

More detailed installation guide is described in INSTALL.md

Sparta requires extra Moz2D vm plugin. Plugin for the current OS and VM (32 or 64 bit) is downloaded and installed automatically together with all needed packages. For that, Sparta uses Iceberg to work with Git version control system.

Bootstrap bleading edge development together with tests and additional Lint rules:

Metacello new
  baseline: 'Sparta';
  repository: 'github://syrel/sparta/src';
  load

Overview

(All images are rendered using Sparta in Pharo)

"Sparta" string rendered with applied neon filter

Backends

Moz2D, and as result Sparta, has support of native OS graphic engines, as well as cross platform ones.

On all platforms Sparta provides support of Cairo and Skia. Additionally, high performant CoreGraphics and CoreGraphics Accelerated on Mac OS and Direct2D on Windows. In total Sparta supports 5 different rendering backends.

Text

One of the biggest improvements compared to existing graphics engines from Pharo is advanced high quality text rendering with multi-language support.

Multilanguage support in Sparta

The current Pharo text rendering engines draw a piece of text with one concrete font and style. If the font does not have an appropriate character, a stub glyph will be rendered instead. Sparta introduces a notion of font groups that allow us to achieve a smooth fallback font detection based on the selected font style, language and missing glyphs. Fallback font support requires more complex text measurement, as multiple fonts faces are involved to render a single piece of text.

Filters

Since Sparta is based on the Moz2D backend that was designed for web browsers, we can get support for a wide variety of filter primitives. Sparta provides an ability to compose multiple filter primitives to get a single, advanced filter. For example, with the help of ColorMatrix and TableTransfer filters we can simulate some popular Instagram-like filters, for example Nashville, Inkwell or Brannan.

Instagram-like filters implemented with Sparta

Basic drawings

We should not forget that first of all Sparta is a vector graphics engine. It allows developers to create, fill and stroke custom paths and shapes. Together with gaussian blur, we can achieve astonishing results that were not possible before.

Basic vector graphics in Sparta

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].