Skip to content

pablinos/p5-cljs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

p5-cljs

A wrapper library building on cljsjs.p5 (externs for P5), inspired by Quil. It's far from complete and there's probably something intelligent I could do with macros to avoid all the repetition, but what's there is usable.

Usage

Add p5-cljs as a dependency and then create a sketch by passing in your setup and draw functions.

(ns application.core
  (:require 
    [p5-cljs.core :as p]))

  (p/create-sketch 
   {
    :element-id "sketch"
    :setup setup-fn
    :draw draw-fn
    })

The wrappers allow you to call (p/rect x y w h) and have it operate on the 'current' sketch.

About

ClojureScript wrapper library for P5.JS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published