Clojure/ClojureScript library for creating interactive drawings and animations
Questions tagged [quil]
47 questions
2
votes
1 answer
Clojure macro inside another macro: how to generate string from symbol
Probably the title is not 100% correct, but let me show you the issue:
(defmacro nvp!
[n width height]
`(q/defsketch (symbol (str (name '~n) "-viewport" ))
:title (name '~n))
In short: there's a macro called defsketch (it's…

Mate Varga
- 3,144
- 2
- 14
- 17
2
votes
1 answer
Clojure GUI for cropping images
I'm making a GUI for selecting regions to crop from images. I have been using Seesaw and cans select rectangular regions, but cannot find a way to set an image to the background of seesaw.canvas. This suggests using icons on labels. Can I make a…
user945754
1
vote
1 answer
Creating Other 3D Primitives in Quil Using Clojure
I am working on a Clojure program that is in need of using 3D graphics and for that I am using Quil. The first question I have is are there alternatives using Clojure to Quil? As far as I can tell it seems like the most advanced processing library I…

phlie
- 1,335
- 3
- 10
- 19
1
vote
1 answer
i have Imported installed quill but the issue with user interface
Well I followed the example
https://www.youtube.com/watch?v=Sh3_k_QPGzw
I don't get the Quill tool bar as shown in the any of the examples

Coder.exe
- 161
- 1
- 10
1
vote
2 answers
Using Django with an html editor, econding and decoding the text
I'm receiving data in Django using the editor Quill, data formatted as HTML.
It is possible to encode/clean the data when I push in the database, and when I retrieve to be back in html ? If yes how ?
Also I use only paragraph,lists and (this is…

user3541631
- 3,686
- 8
- 48
- 115
1
vote
1 answer
How to bind functions in let evaluating them later
I'm learning Clojure to use it with Quil to make generative art and I would like to try to understand a bit more about let function and reader macro probably.
I tried reading about reader macros from the docs but I couldn't find a clear answer to…

elkiwy
- 59
- 5
1
vote
3 answers
how can I write a boot script to load a quil/processing sketch?
I have boot working with other examples, but im trying to use it with quil/Processing.
I wrote this simple script and tried to run it, but all it does is launches a Java Applet window then immediately closes. There are no error logs for me to…

jas
- 580
- 1
- 7
- 18
1
vote
1 answer
Quilljs - How to get data at server side in ASP.net using QuillJS Text Editor
I am implementing Quilljs text editor in ASP.net.
Below is my .aspx file code.
…

Dheeraj Kumar
- 3,917
- 8
- 43
- 80
1
vote
0 answers
Clojure: get image pixels without displaying
In Quil, I would like to give the draw function a bunch of specifications for rectangles, and "draw" those rectangles - I don't want to actually see the rectangles, I just want an array of pixels to compare against a different image.
Something…

chris
- 1,831
- 18
- 33
1
vote
1 answer
Wrong number of args passed, but I pass the correct amount
I am using Quil with Clojure and am getting an odd error.
I get the error
Exception in :draw function: #error {
:cause Wrong number of args (1) passed to: core/move-circle/fn--14896
:via
Here is the only are of code that move-circle…

John Hamlett IV
- 495
- 11
- 23
1
vote
1 answer
Using quil.core/ellipse to draw an 8 pattern in clojure
I want to draw an sketch with eight pattern. Now I know how to draw circles in counterclockwise and clockwise directions. But I do not know how to combine them.
(defn draw-state [state]
(let [x (* 150 (quil.core/cos angle))
y (* 150…

Xiufen Xu
- 531
- 1
- 3
- 19
1
vote
0 answers
what is the way to work with gsvideo or qtvideo event handler in quil?
I am struggling with porting this code to quil wiht no success:
using qtvideo
void movieEvent(Movie m) {
m.read();
}
or gsvideo
void movieEvent(GSMovie movie) {
movie.read();
}
I've done a lot of searchs related with this problem but no results…

tangrammer
- 3,041
- 17
- 24
1
vote
1 answer
How to handle specific errors in clojure
I am using clojure with the quil library, at one point in the code I load a random image in a folder, occasionally I get an error which says:
Could not find a method to load ./data/images/367-014.jpg%3F0
How could I make it so that the code…

Jake Schievink
- 409
- 4
- 16
1
vote
1 answer
How to find the width and height of an image with quil in clojure
I am trying to find the width of a loaded image in clojure. In processing I would do this,
PImage img=loadImage("image.jpg");
int x=img.width;
int y=img.height;
I tried to do this same in clojure but it won't work
(defn loadwebimg…

Jake Schievink
- 409
- 4
- 16
0
votes
0 answers
highlight.js only rendering at top elements
I'm sing Highlight Js to render Code in QuillJs Editor.
I've used following libraries.