Text & Graphics
Text
We briefly covered text output to the screen in the Input section above.
|
Output Command |
Example Use |
|
puts() |
puts(fn,"Hello, world!") |
|
print() |
print(fn, 3 + 7) |
|
? |
?10+44 |
In the above examples, fn represents a "handle" to an output device. It can be the screen, the printer, etc.
Euphoria's printf() procedure (printf means "print formatted") lets us massage our data for display. For instance, look at the different ways I can print the value "123.456" using the printf() procedure.
printf(1, "%d", {"123.456"} ) -- prints '123'
printf(1, "%f", {"123.456"} ) -- prints '123.456'
NOT FINISHED
Graphics
Euphoria can also output graphics, such as lines, points, and circles. Since there are a variety of ways to do so, all dependent on your OS, I'll leave this topic for another time. In the meantime, you can click the following links for helpful study pages.