Code Monkey home page Code Monkey logo

fxhash-digital-city's Introduction

digital city

A light shadow-cljs template to create generative art with quil for the fxhash platform.

You'll need Java, node and npm installed (yarn also works).

image

Setup + Development

npm i or yarn to install dependencies

npm run dev launches a live-reloading dev environment at http://localhost:8020/

Calva

This project works with calva, make sure to select shadow-cljs then check the box next to :app and connect to :app for your REPL.

fxhash

The fxhash host exposes two useful variables, fxhash and fxrand, which are clojureified in the starter.fx-hash namespace as (fx-hash) and (fx-rand).

See the fxhash guide.

We also expose a method to register features of your token via (register-features {:feat-a true}) in the same namespace.

index.html + main.css

Both these files (located in the public/ folder) can be edited freely so long as you preserve the fxhash snippet and the filepaths.

If you rename the root namespace from starter make sure to update the call to starter.quil.init() in index.html.

Packaging + Release

npm run release will build & package into fxhash-release.zip, ready to upload to the site.

Tips

It's a regular quil sketch, so refer to the quil API docs and the fxhash guide for further guidance.

fxhash-digital-city's People

Contributors

bfollington avatar saikyun avatar thheller avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.