• Stars
    star
    379
  • Rank 113,004 (Top 3 %)
  • Language
    JavaScript
  • Created almost 12 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Let's pretend d3 was written in ClojureScript.

strokes

Now, the world don't move to the beat of just one drum,
What might be right for you, may not be right for some.

strokes is an interop library for using d3.js from clojurescript

D3 is a wonderfully functional library and seems well suited for playing nice with clojurescript, provided the usual data wrangling issues can be made to go away. This is achieved in strokes via JavaScript metaprogramming that provides a language polyfill for the clojure container classes so that they can be accessed natively by D3. This interop functionality is provided by the separate and growing mrhyde library.

This repo also currently includes a number of standalone examples in the examples subdirectory. The venn-simple example is probably the easiest 'hello-world' program to use as template to start hacking your own projects.

Online examples:

Getting Started

To use strokes from your ClojureScript project, add this dependency to your project.clj:

[net.drib/strokes "0.5.1"]

Or to get started in this repo, try venn-simple or any of the other examples. Simply

cd examples/venn-simple
lein cljsbuild auto

Then open public/hello.html to see three circles in your web browser. Then to get hacking, you can then edit the venn-simple source file, save, and refresh your browser to see the changes.

More Repositories

1

pixray

neural image generation
Python
402
star
2

plat

Python
318
star
3

clipit

CLIP + VQGAN / PixelDraw
Python
282
star
4

mrhyde

clojurescript ))<= interop =>(( javascript
JavaScript
61
star
5

perceptionengines

Perception Engines
Python
54
star
6

portrain-gan

torch code to decode (and almost encode) latents from art-DCGAN's Portrait GAN
Python
40
star
7

kerosene

Clean Burning Fuel
Python
29
star
8

lfw_fuel

Labeled Faces in the Wild dataset, converted to fuel
Python
28
star
9

acute

Let's pretend angular was written in ClojureScript
JavaScript
28
star
10

blade

let's pretend leaflet was written in cljs
JavaScript
14
star
11

acu

ACU Toolkit (partial history)
C
14
star
12

dbn

Design By Numbers (archives from acg)
Java
12
star
13

mantel

p5 restoration of Manolo's Mantel generator
JavaScript
7
star
14

ArrayLike.js

specification and polyfill for allowing any JavaScript object to function as an array
JavaScript
7
star
15

dopes

drawing on perception engine systems
Python
6
star
16

strokes-examples

example clojurescript projects for using the strokes library
JavaScript
5
star
17

dbn101

Design By Numbers 1.0.1 (First runnable version of DBN)
Java
4
star
18

sumdroppings

attemps at summingbird examples
Scala
4
star
19

dribbot

Examples of using tweepy to perform various bot actions
Python
3
star
20

victory

A design landscape inspired by Mondrian
JavaScript
2
star
21

gobpixray

gob site for pixray
JavaScript
2
star
22

imagespawn

Clojure
2
star
23

defmain

simple clojure executables, stolen from from cascalog.core
Clojure
2
star
24

substrate

Substrate by Jared Tarbell (2003)
JavaScript
1
star
25

nnp

Python
1
star
26

js-literal

#js tagged literal for compile time javascript data structures
Clojure
1
star