Generative arts library in Rust

Overview

logo

Generative

GitHub license Status GitHub issues GitHub Pull Requests GitHub Workflow Status


Generative (WIP) is 2D generational arts creation library written in Rust. Currently it is in nascent stage and is somewhat unstable.

Example Outputs

Outputs

Perlin Loop

Perlin Loop

Perlin Force Field

Perlin Force Field Lines

Watercolored Circles

Watercolored Circles

Mandelbrot

Mandelbrot

Generating sinusoidal wave image

Original Wave Image
Original Generated

Current features:

  • 2D Shape + Transformations (Translation, Rotation, Shearing in X and Y) + Anti-Aliasing
    • Lines
    • Line from multiple points
    • Squares
    • Rectangles
    • Polygons
    • Circles
    • Ellipse
  • Curves + Transformations (Translation, Rotation, Shearing in X and Y) + Anti-Aliasing
    • Catmull-Rom Spline (Uniform + Centripetal + Chordal)
    • n-degree Bezier curve

TODO:

  • A lot of things
You might also like...
Membrane is an opinionated crate that generates a Dart package from a Rust library. Extremely fast performance with strict typing and zero copy returns over the FFI boundary via bincode.

Membrane is an opinionated crate that generates a Dart package from a Rust library. Extremely fast performance with strict typing and zero copy returns over the FFI boundary via bincode.

Stack unwinding library in Rust

Unwinding library in Rust and for Rust This library serves two purposes: Provide a pure Rust alternative to libgcc_eh or libunwind. Provide easier unw

Easy to use Rust i18n library based on code generation

rosetta-i18n rosetta-i18n is an easy-to-use and opinionated Rust internationalization (i18n) library powered by code generation. rosetta_i18n::include

A library for advanced finite element computations in Rust
A library for advanced finite element computations in Rust

A Rust library for building advanced applications with the Finite Element Method (FEM). Although developed with a special emphasis on solid mechanics

Mononym is a library for creating unique type-level names for each value in Rust.

Mononym is a library for creating unique type-level names for each value in Rust.

tiny_id is a Rust library for generating non-sequential, tightly-packed short IDs.

tiny_id tiny_id is a Rust library for generating non-sequential, tightly-packed short IDs. Most other short ID generators just string together random

islam is an Islamic library for Rust.

islam is an Islamic library for Rust. It is a direct port of PyIslam with a slight change in the API part.

A Rust library for managing eBPF programs.

oxidebpf oxidebpf is a permissive licensed Rust library for managing eBPF programs. Motivation The motivation behind oxidebpf is to create a permissiv

A rust library that makes reading and writing memory of the Dolphin emulator easier.

dolphin-memory-rs A crate for reading from and writing to the emulated memory of Dolphin in rust. A lot of internals here are directly based on aldela

Comments
  • Slpf

    Slpf

    • scan line polygon filling still not implemented,.
    • some important helper functions have been implemented.
    • structs for Point as well as Pixel manipulation have been implemented.
    opened by gp-97 0
  • make examples work from any subdirectory

    make examples work from any subdirectory

    • add the project-root crate as a dev-dependency.
    • add a path function to both examples that converts a relative path from the root of the project to a full path.
    • use compact syntax for importing multiple types from the same crate.
    later needs more work 
    opened by joseluis 0
  • Make examples work from any subdirectory

    Make examples work from any subdirectory

    Since their output path is currently hardcoded, they fail when run outside the project's root.

    I've created a proof-of-concept in PR #12 that enables them to be run from anywher inside the project.

    This could also be applied to the integration tests. But in that case it may be more convenient to put the path() function in a common module instead of repeating it on each file.

    low priority 
    opened by joseluis 4
  • Consider using the RGBA type for the color pixels.

    Consider using the RGBA type for the color pixels.

    The rgb crate allows no-copy high-level interoperability. Its RGBA type implements the From and Into traits from/to a tuple of 4 values like the ones used right now.

    It would make this crate much easier to use together with other graphic crates that uses other pixel color representations.

    later 
    opened by joseluis 3
Owner
Gaurav Patel
Gaurav Patel
A library to compile USDT probes into a Rust library

sonde sonde is a library to compile USDT probes into a Rust library, and to generate a friendly Rust idiomatic API around it. Userland Statically Defi

Ivan Enderlin 40 Jan 7, 2023
A Rust library for calculating sun positions

sun A rust port of the JS library suncalc. Install Add the following to your Cargo.toml [dependencies] sun = "0.2" Usage pub fn main() { let unixti

Markus Kohlhase 36 Dec 28, 2022
A cross-platform serial port library in Rust.

Introduction serialport-rs is a general-purpose cross-platform serial port library for Rust. It provides a blocking I/O interface and port enumeration

Bryant Mairs 143 Nov 5, 2021
A high level diffing library for rust based on diffs

Similar: A Diffing Library Similar is a dependency free crate for Rust that implements different diffing algorithms and high level interfaces for it.

Armin Ronacher 617 Dec 30, 2022
A reactive DOM library for Rust in WASM

maple A VDOM-less web library with fine-grained reactivity. Getting started The recommended build tool is Trunk. Start by adding maple-core to your Ca

Luke Chu 1.8k Jan 3, 2023
transmute-free Rust library to work with the Arrow format

Arrow2: Transmute-free Arrow This repository contains a Rust library to work with the Arrow format. It is a re-write of the official Arrow crate using

Jorge Leitao 708 Dec 30, 2022
Cross-platform Window library in Rust for Tauri. [WIP]

Cross-platform application window creation library in Rust that supports all major platforms like Windows, macOS, Linux, iOS and Android. Built for you, maintained for Tauri.

Tauri 899 Jan 1, 2023
A library in Rust for theorem proving with Intuitionistic Propositional Logic.

Prop Propositional logic with types in Rust. A library in Rust for theorem proving with Intuitionistic Propositional Logic. Supports theorem proving i

AdvancedResearch 48 Jan 3, 2023
A Rust library for constructing tilings of regular polygons

tiling tiling is a library for constructing tilings of regular polygons and their dual tilings. Resources Documentation Tilings by regular polygons Li

Jonas Michel 29 Sep 30, 2021
miette is a diagnostic library for Rust. It includes a series of traits/protocols that allow you to hook into its error reporting facilities, and even write your own error reports!

miette is a diagnostic library for Rust. It includes a series of traits/protocols that allow you to hook into its error reporting facilities, and even write your own error reports!

Kat Marchán 1.2k Jan 1, 2023