shelper
shelper

Reputation: 10573

real time refreshing in processing

I am new to processing, i found it by searching for "draw with coding" , and i tried it, seems every time i modify the code, i have to stop and render again to get the final result

Is there any way to get updated graph without re-rendering? that can be much more convenient for creating simple figures. if not, is there any alternative to processing that can draw a graph with coding?

I've used Tikz in Latex, but that is just for Latex, I want something that can let me draw a figure by coding, I've suffered enough though using software like coreldraw, it lacks the fundamental elegance of coding..

thanks alot!

Upvotes: 1

Views: 348

Answers (3)

George Profenza
George Profenza

Reputation: 51837

Please have a look at the FluidForms libraries.

  • easy to setup
  • documentation and video tutorials
  • as long as you don't run into exceptions, live code comfortably
  • if you prefix public variables with param you also get sliders for free :)

Do check out the video tutorials, especially this one:

FluidFormsLibs live coding

Also, if using Python isn't a problem I recommend having a look at:

  1. NodeBox
  2. Field

Python is a brilliant scripting language - which makes prototyping/'live coding' easy(although it can be compiled and it also plays nicely with c/c++) and is easy to pick up and a joy to use.

Field preview

Upvotes: 2

Alvarop
Alvarop

Reputation: 1

You must re-run the code to see the new result. If Live coding is what you're looking for, check out Fluxus (http://www.pawfal.org/fluxus/) or Impromptu (http://en.wikipedia.org/wiki/Impromptu_(programming_environment)

Upvotes: 0

Jorge Cardoso
Jorge Cardoso

Reputation: 325

In Processing, you must re-run your program to see the changes (graphically), unless you write code to receive input from the user to dynamically adjust what you are drawing. For creating user interfaces there's for example the controlP5 library (http://www.sojamo.de/libraries/controlP5/).

It doesn't support "live coding" (at least that I know of).

Upvotes: 0

Related Questions