All Projects → pravj → Geopattern

pravj / Geopattern

Licence: mit
📐 Create beautiful generative image patterns from a string in golang.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Geopattern

frameV
Framed Visuals: collaborative generative art.
Stars: ✭ 20 (-98.2%)
Mutual labels:  art, generative-art
Pts
A library for visualization and creative-coding
Stars: ✭ 4,628 (+315.81%)
Mutual labels:  generative-art, art
glitch-image
🖼 Generate and save unique glitchy images
Stars: ✭ 46 (-95.87%)
Mutual labels:  art, generative-art
samila
Generative Art Generator
Stars: ✭ 750 (-32.61%)
Mutual labels:  art, generative-art
Snek
See https://github.com/inconvergent/weir instead
Stars: ✭ 696 (-37.47%)
Mutual labels:  generative-art, art
pixelino
Pixel-drawing app for iOS ✍️
Stars: ✭ 45 (-95.96%)
Mutual labels:  art, pixel-art
Flutter D Art
Generative d.Art with Flutter
Stars: ✭ 356 (-68.01%)
Mutual labels:  generative-art, art
generative
A digital playground for experimenting with creative coding and WebGL
Stars: ✭ 50 (-95.51%)
Mutual labels:  art, generative-art
001
draw_code.001 — ThreeJS, WebGL & GLSL
Stars: ✭ 48 (-95.69%)
Mutual labels:  generative-art, art
Party Mode
An experimental music visualizer using d3.js and the web audio api.
Stars: ✭ 690 (-38.01%)
Mutual labels:  generative-art, art
Pix
🎨 Pix is an online pixel art community where everyone can unleash their creativity on a 16x16 canvas, built with React-Native for iOS devices. 🚀
Stars: ✭ 86 (-92.27%)
Mutual labels:  art, pixel-art
Awesome Creative Coding
Creative Coding: Generative Art, Data visualization, Interaction Design, Resources.
Stars: ✭ 8,696 (+681.31%)
Mutual labels:  generative-art, art
ZzSprite
Pixel Art Sprite Generator
Stars: ✭ 85 (-92.36%)
Mutual labels:  pixel-art, generative-art
vpype-pixelart
Pixel art plotting in vpype
Stars: ✭ 40 (-96.41%)
Mutual labels:  pixel-art, generative-art
pycontextfree
Pythonic generative art tool
Stars: ✭ 32 (-97.12%)
Mutual labels:  art, generative-art
Context Free
Context Free is a program that generates images from written instructions called a grammar. The program follows the instructions in a few seconds to create images that can contain millions of shapes.
Stars: ✭ 326 (-70.71%)
Mutual labels:  generative-art, art
corruption-loops
Digitally disintegrating music
Stars: ✭ 37 (-96.68%)
Mutual labels:  art, generative-art
microbium-app
Draw new worlds
Stars: ✭ 89 (-92%)
Mutual labels:  art, generative-art
Weir
A system for making generative systems
Stars: ✭ 451 (-59.48%)
Mutual labels:  generative-art, art
Gitfiti
abusing github commit history for the lulz
Stars: ✭ 6,750 (+506.47%)
Mutual labels:  art, pixel-art

geopattern

Create beautiful generative image patterns from a string in golang.

Go port of Jason Long's awesome GeoPattern library.

GoDoc

Read geopattern's development story geo_pattern: going on the Go path

Nested Squares Pattern

Generate beautiful tiling SVG patterns from a string. The string is converted into a SHA and a color and pattern are determined based on the values in the hash. The color is determined by shifting the hue from a default (or passed in) base color. One of 16 patterns is used (or you can specify one) and the sizing of the pattern elements is also determined by the hash values.

You can use the generated pattern as the background-image for a container. Using the base64 representation of the pattern still results in SVG rendering, so it looks great on retina displays.

See the GitHub Guides site as an example of this library in action. GitHub Guides use Original Ruby implementation.

Installation

go get github.com/pravj/geopattern

Usage

Example directory contains sample go programs that explains use of geopattern

API

Arguments for functions returning pattern's string

phrase : custom pattern phrase

args := map[string]string{"phrase": "My Custom Phrase"}

generator : custom pattern type

args := map[string]string{"generator": "plaid"}

color : custom background color

args := map[string]string{"color": "#3b5998"}

baseColor : custom base color that decides background color

args := map[string]string{"baseColor": "#ffcc00"}

Functions provided by package for pattern's string representation

Get the SVG string :

Generate(args)

Get the Base64 encoded string :

Base64String(args)

Get uri image string :

URIimage(args)

Available Pattern

chevrons

Chevrons

concentric-circles

Concentric-Circles

diamonds

Diamonds

hexagons

Hexagons

mosaic-squares

Mosaic-Squares

nested-squares

Nested-Squares

octagons

Octagons

overlapping-circles

Overlapping-Circles

overlapping-rings

Overlapping-rings

plaid

Plaid

plus-signs

Plus-Signs

sine-waves

Sine-Waves

squares

Squares

tessellation

Tessellation

triangles

Triangles

xes

Xes

Dependencies

go-colorful : for color space conversion


Made with Muzi and Appy by Pravendra Singh

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