Search the web
Sign In
New User? Sign Up
frink
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Graphics in Frink!   Message List  
Reply | Forward Message #228 of 256 |
Graphics with text in Frink!


The latest Frink release adds the ability to draw text into Frink's
new graphics. Text is high-quality, and has transparent, anti-aliased
edges. Text can either be automatically scaled along with an image, or
rendered at a fixed size that stays constant as the image is scaled.

There are three generic fonts designed for portability between
platforms and renderers, or, if you don't care about portability, any
font on your system can be used.

For more information, see the "Graphics with Text" section of the
documentation:

http://futureboy.us/frinkdocs/#GraphicsWithText

For example, the following simple program draws a 5x5 grid of random
characters, which are automatically resized as you resize the image:

----------------------------------------------------------------

g=new graphics
g.font["SansSerif", "bold", 10]

for x=1 to 5
for y=1 to 5
g.text[char[random[char["A"], char["Z"]]], x*10, y*10]

g.show[]

----------------------------------------------------------------

Your homework is to make some interesting gameboard using similar
techniques!

--
Alan Eliasen | "Furious activity is no substitute
eliasen@... | for understanding."
http://futureboy.us/ | --H.H. Williams



Wed Oct 15, 2008 10:31 pm

aeliasen
Online Now Online Now
Send Email Send Email

Forward
Message #228 of 256 |
Expand Messages Author Sort by Date

I'm happy to announce that Frink can now draw graphics! This is probably the largest single update of Frink ever, and it adds the ability to easily draw...
Alan Eliasen
aeliasen
Online Now Send Email
Oct 9, 2008
10:07 am

This update makes it official -- all my future programming will be done in Frink! -- Don Groves...
Don Groves
pollyfonic
Offline Send Email
Oct 9, 2008
6:28 pm

The latest Frink release adds the ability to draw text into Frink's new graphics. Text is high-quality, and has transparent, anti-aliased edges. Text can...
Alan Eliasen
aeliasen
Online Now Send Email
Oct 15, 2008
10:31 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help