Code Monkey home page Code Monkey logo

drawing's Introduction

drawing

ClojureBridge capstone app using Quil to draw.

Usage

LightTable - open lines.clj and press Ctrl+Shift+Enter to evaluate the file.

REPL - run (require 'drawing.lines).

Curriculum

Quil and Processing Resources

License

Creative Commons License
ClojureBridge Curriculum by ClojureBridge is licensed under a Creative Commons Attribution 4.0 International License.

drawing's People

Contributors

bridgethillyer avatar davidchambers avatar iantruslove avatar juliangamble avatar k4y3ff avatar mookerji avatar sduckett avatar seancorfield avatar yokolet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

drawing's Issues

Rename this repo

Thinking of renaming this now that we're doing something with lines. But I'll leave the circles example in there and may add others.

So... shapes? Or is that too boring? Any other suggestions @yokolet?

Scale back capstone lab

The capstone lab currently introduce a lot of useful concepts and is mostly well organized but unfortunately many of these concepts are not introduced by the ClojureBridge curriculum. My students were caught off guard by:

  • ref
  • absence of ! idiom for noting state-changing functions (this is a thing the curriculum hints at)
  • for
  • doseq
  • dotimes
  • dosync
  • namespaces
  • Dereferencing (@)
  • Where to find images (snowflake, blue background)
  • No explanation of q/smooth or changes in q/frame-rate
  • Hard to tell what changed between each code sample
  • The concept of refactoring

quil leining template generates warnings

Running the command lein new quil drawing creates a project. When running lein deps in this drawing project, warnings are generated

~/p/clojure➜ lein new quil drawing-test
Generating fresh 'lein new' quil project.
~/p/clojure➜ cd drawing-test
~/p/c/drawing-test➜ lein deps
WARNING!!! version ranges found for:
[quil "2.2.5"] -> [com.keminglabs/cljx "0.4.0"] -> [org.clojars.trptcolin/sjacket "0.1.0.6"] -> [org.clojure/clojure "[1.3.0,)"]
Consider using [quil "2.2.5" :exclusions [org.clojure/clojure]].
[quil "2.2.5"] -> [com.keminglabs/cljx "0.4.0"] -> [org.clojars.trptcolin/sjacket "0.1.0.6"] -> [net.cgrand/regex "1.1.0"] -> [org.clojure/clojure "[1.2.0,)"]
Consider using [quil "2.2.5" :exclusions [org.clojure/clojure]].
[quil "2.2.5"] -> [com.keminglabs/cljx "0.4.0"] -> [org.clojars.trptcolin/sjacket "0.1.0.6"] -> [net.cgrand/parsley "0.9.1"] -> [org.clojure/clojure "[1.2.0,)"]
Consider using [quil "2.2.5" :exclusions [org.clojure/clojure]].
[quil "2.2.5"] -> [com.keminglabs/cljx "0.4.0"] -> [org.clojars.trptcolin/sjacket "0.1.0.6"] -> [net.cgrand/parsley "0.9.1"] -> [net.cgrand/regex "1.1.0"] -> [org.clojure/clojure "[1.2.0,)"]
Consider using [quil "2.2.5" :exclusions [org.clojure/clojure]].

This seems to be an issue with Quil version 2.2.5 and Clojure 1.6. Edit the project.clj file and either change the quil dependency to 2.2.4 or add :exclusions [org.clojure/clojure] to the dependency entry for quil 2.2.5

(defproject drawing-test "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url "http://example.com/FIXME"
  :license {:name "Eclipse Public License"
            :url "http://www.eclipse.org/legal/epl-v10.html"}
  :dependencies [[org.clojure/clojure "1.6.0"]
                 [quil "2.2.5" :exclusions [org.clojure/clojure]]])

Or simply clone the existing repository, rather than create your own project with Leiningen.

Thank you

Clarify "Modify Project" in `first-program.md`

At the Austin workshop, one or two folks missed the "Modify Project" section of first-program.md and thought that they should be editing the original core.clj file in some way.

Writing this issue while I'm at the workshop, so I'm being brief, but we should brainstorm a way to make that section clearer and/or more prominent.

What is "dependencies"?

In the "Making Your First Program" page we say:

It helps Leiningen answer questions like, "What dependencies does this project have?"

but I don't think we've explained anywhere what we mean by this piece of jargon. Beneath that we say:

This uses a Clojure library, Quil, that creates drawings called sketches.

Maybe instead of "dependencies" we should say:

It helps Leiningen answer questions like, "What libraries does this project need?"

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.