Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quil.core/stroke-cap has no effect with ClojureScript #170

Closed
jbaiter opened this issue Dec 3, 2015 · 1 comment
Closed

quil.core/stroke-cap has no effect with ClojureScript #170

jbaiter opened this issue Dec 3, 2015 · 1 comment

Comments

@jbaiter
Copy link

jbaiter commented Dec 3, 2015

Setting the stroke caps to a value other than :round doesn't seem to have any effect with the ClojureScript backend.

Example:

(ns foo/example
  (:require [quil.core :as q :include-macros true]))

(defn setup []
  (q/frame-rate 30))

(defn draw []
  (q/background 255)
  (q/stroke 0)
  (q/stroke-cap :square)
  (q/stroke-weight 10)
  (q/no-fill)
  (q/line 200 200 250 250))

(q/defsketch foo
   :host "canvas"
   :size [500 500]
   :setup setup
   :draw draw)

http://quil.info/sketches/html/3LwVjuOYwz

@jbaiter jbaiter changed the title quil/stroke-cap has no effect quil.core/stroke-cap has no effect Dec 3, 2015
@jbaiter jbaiter changed the title quil.core/stroke-cap has no effect quil.core/stroke-cap has no effect with ClojureScript Dec 3, 2015
@nbeloglazov
Copy link
Member

Indeed. Thanks for reporting and providing good reproducible example, that helped! Apparently some processingJs functions use values constants instead of ints while we expected only ints (like in regular processing). Actually processingJs source claims it takes int values (but in fact they're string) which adds to confusion.

Also thanks to your report stroke-join and cursor were fixed as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants