All Projects → go-p5 → p5

go-p5 / p5

Licence: BSD-3-Clause license
p5 is a simple package that provides primitives resembling the ones exposed by p5js.org

Programming Languages

go
31211 projects - #10 most used programming language

Labels

Projects that are alternatives of or similar to p5

generative
A digital playground for experimenting with creative coding and WebGL
Stars: ✭ 50 (-53.7%)
Mutual labels:  p5
react
A wrapper component that allows you to utilise P5 sketches within React apps.
Stars: ✭ 332 (+207.41%)
Mutual labels:  p5
ml gallery
This is a master project of some experiments with Neural Networks. Every project here is runnable, visualized and explained clearly.
Stars: ✭ 18 (-83.33%)
Mutual labels:  p5
nub
A rendering and interaction Processing library
Stars: ✭ 28 (-74.07%)
Mutual labels:  p5
vue-p5-example
Example project for vue-p5
Stars: ✭ 23 (-78.7%)
Mutual labels:  p5
p5-react-renderer
A react renderer for p5.js
Stars: ✭ 16 (-85.19%)
Mutual labels:  p5
snake-game-p5
The Snake Game made with p5.js 🐍🎮.
Stars: ✭ 18 (-83.33%)
Mutual labels:  p5
p5-server
Command-line tool to create and run p5.js sketches. It runs a server with live reload, sketch-aware directory listings, automatic libraries for JavaScript-only sketches.
Stars: ✭ 33 (-69.44%)
Mutual labels:  p5
p5-svelte
Easily add p5 sketches to a Svelte project 🍛 🌱
Stars: ✭ 94 (-12.96%)
Mutual labels:  p5
ICM-2018
Syllabus for ITP Foundation Course Introduction to Computational Media, Fall 2018
Stars: ✭ 57 (-47.22%)
Mutual labels:  p5
processing-sketchbook
Open Source Sketchbook written in Processing Language
Stars: ✭ 18 (-83.33%)
Mutual labels:  p5
b5
A visual programming language for learning, prototyping, and fun. Inspired by p5.js.
Stars: ✭ 48 (-55.56%)
Mutual labels:  p5

p5

GitHub release go.dev reference CI GoDoc License codecov

p5 is a simple package that provides primitives resembling the ones exposed by the p5/processing library.

License

p5 is released under the BSD-3 license.

Documentation

Documentation for p5 is served by GoDev.

Contributing

Guidelines for contributing to go-p5 the same than for the Go project.

Installation

This project relies on Gio for the graphics parts. As Gio uses system libraries to display graphics, you need to install those for your system/OS for p5 to work properly. See Gio/install for details.

Example

package main

import (
	"image/color"
	"math"

	"github.com/go-p5/p5"
)

func main() {
	p5.Run(setup, draw)
}

func setup() {
	p5.Canvas(400, 400)
	p5.Background(color.Gray{Y: 220})
}

func draw() {
	p5.StrokeWidth(2)
	p5.Fill(color.RGBA{R: 255, A: 208})
	p5.Ellipse(50, 50, 80, 80)

	p5.Fill(color.RGBA{B: 255, A: 208})
	p5.Quad(50, 50, 80, 50, 80, 120, 60, 120)

	p5.Fill(color.RGBA{G: 255, A: 208})
	p5.Rect(200, 200, 50, 100)

	p5.Fill(color.RGBA{G: 255, A: 208})
	p5.Triangle(100, 100, 120, 120, 80, 120)

	p5.TextSize(24)
	p5.Text("Hello, World!", 10, 300)

	p5.Stroke(color.Black)
	p5.StrokeWidth(5)
	p5.Arc(300, 100, 80, 20, 0, 1.5*math.Pi)
}

img-hello

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