-
Notifications
You must be signed in to change notification settings - Fork 89
Adds the run-app command to override the sketch wrapping #126
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
Conversation
It’s an option scoped for those who want to build full jRuby apps that use Ruby Processing.
|
OK I'm not sure what this adds, in my hands JWishy will run just fine whether class wrapped or not with |
|
Hi Monk. I have a t-shirt store that sells t-shirts with art generated by ruby-processing (http://entrama.com.br). For that, I really need the PDF exporting support, which I found lacking (or buggy) in Processing 3.0. Second, I'm developing a Java FX visual interface (with JRuby FX) to generate drawings for my brand and to do that, I had to get rid of the sketch wrapping features of Processing. I know processing has this "sketchy" vibe but I believe it's a powerful tool that can be used inside apps to do really useful stuff. So I've introduced the run-app command in order to give the users the ability of running actual apps that have ruby-processing as main library and not just processing sketches. I could have suggested something like "rp5 run sketch.rb --no-wrap" but I though it would mix two actually different use cases. Run would be for sketches while Run-app would be for actual Ruby Applications. What do you think? Also, I really love this project and it'd be an honour for me to take it on. |
|
I pasted an example of the code here so you can see the kind of file I'm running through run-app command: https://gist.github.com/pedrozath/b08c1cf4d1d49c637d33ec4c5fcfcb66 |
|
That looks quite interesting, I should look into javafx a bit more myself, you might be interested in a side project I started propane which is essentially ruby-processing but with java jars included in the gem, where class wrapped sketches can be run directly with jruby (I have also updated to JRuby9K). |
|
@pedrozath seems jashkenas might have gone bit quiet on internet no evidence of action on twitter or coffeescript so I decided just to pull your request, I have some ideas for improving watch mode that seem to work better on ruby-processing rather than on jruby-art so I might like to release a version with your PR before I do that. Can you possibly write something up about run-app on the wiki? |
|
Alright, i'll do it. Btw, the propane idea is very interesting. However, to my needs, a cool thing would be like a processing framework, like rails, withy JavaFX as a quick way to introduce GUI panels and so on. What do you think about this idea? |
|
Just edited and added it: https://github.com/jashkenas/ruby-processing/wiki/Getting-Started |
Adds a new option scoped for those who want to just want to build full jRuby apps that use Ruby Processing. It discards the whole Processing class wrapping logic.