We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › How do i write text in te sketch window
Page Index Toggle Pages: 1
How do i write text in te sketch window ? (Read 775 times)
How do i write text in te sketch window ?
Dec 20th, 2008, 12:24pm
 
Hi, i want to add some text to explain some things of my sketches,  something like this http://luis.net/projects/processing/bubble/

where it says: Bubble Lens' demo effect

A picture is shown and it looks like soap bubbles...


But my sketches only say :

source code
built with processing

Example:http://www.tweakingknobs.com/bouncing_ball.html

, where do i have to write this so that i can explain stuff ?
thanx
Re: How do i write text in te sketch window ?
Reply #1 - Dec 20th, 2008, 4:06pm
 
I am not too sure, but you show the text which is below the sketch in a Web page, so I will suppose that's what you want to expand.

When you export to applet, you get an index.html file. It is, as the name implies, an HTML file: you can edit it and put as much text as you want. Beware: if you export again, you will loose your changes, save them before.
Re: How do i write text in te sketch window ?
Reply #2 - Dec 20th, 2008, 4:30pm
 
just add a multiline comment to the very beginning of your main tab (first tab). you can even add html there ...

Code:

/**
* hello.
* <p>test</p>
*/


F
Re: How do i write text in te sketch window ?
Reply #3 - Dec 24th, 2008, 9:00am
 
i believe you mean the text at the bottom of your exported file after you run the index.html?

you could just load the final index.html into any html/text editor (such as vim or pspad for windows) and just change the text. (even add CSS and what not) Smiley
Page Index Toggle Pages: 1