You are not logged in or registered. Please login or register to use the full functionality of this board...
SIGN IN Join Our Community For FREE


Draw Font Demo
05-06-2017, 02:00 PM (This post was last modified: 05-17-2017 08:35 PM by bplus.)
Post: #1
 (Print Post)
Draw Font Demo
REPLACED: 2017-05-18 This whole thread has been renamed Draw Font Demo, changed from Draw Strings System.

Before SmallBASIC had sizable fonts, this code was very much needed.

It still has an advantage of just drawing letters without background as the image shows.
It has the disadvantage of being slower than using built in font.

   

Source File attached below.
Find all posts by this user
Like Post
The following 1 user Likes bplus's post:
Anthony.R.Brown
05-06-2017, 02:04 PM
Post: #2
 (Print Post)
RE: Draw string system
WOW! bplus's Talent Shines! Smile
Find all posts by this user
Like Post
The following 1 user Likes Anthony.R.Brown's post:
bplus
05-07-2017, 02:45 PM
Post: #3
 (Print Post)
RE: Draw string system
bplus,

Do you have the source code to the image you posted above?

My goal is to bring joy, excitement, fun and education to all computer programming hobbyists, tinkerers, and amateurs. I also enjoy helping and working with those who aspire at becoming masters of their craft.
Find all posts by this user
Like Post
05-17-2017, 07:45 PM (This post was last modified: 05-17-2017 08:47 PM by bplus.)
Post: #4
 (Print Post)
RE: Draw string system
Hi Walter,

Here is the source code to screen shot you requested.

Sorry it took so long.

MIT license added so people can feel free using.

A brief history of the project:
First I created Draw Strings,
Then I developed Thick Lines and Arcs,
Finally created drawn fonts based on what I learned with Draw Strings.


Attached File(s)
.zip  Draw Font Demo.zip (Size: 54.33 KB / Downloads: 9)
Find all posts by this user
Like Post
The following 2 users Like bplus's post:
figosdev, Waltersmind (Admin)
05-17-2017, 11:53 PM
Post: #5
 (Print Post)
RE: Draw Font Demo
i might cry, this is beautiful. you know what im referring to.

wonderful stuff and very exciting indeed. and thank you.
Find all posts by this user
Like Post
The following 1 user Likes figosdev's post:
bplus
05-18-2017, 01:19 AM
Post: #6
 (Print Post)
RE: Draw Font Demo
bplus,

That is very cool how you did the letters. It is almost like the "DRAW" statement in QBasic, QB45, and QB64.

That opens up a world of possibilities right there if one to create a custom DRAW command.

Nice!

My goal is to bring joy, excitement, fun and education to all computer programming hobbyists, tinkerers, and amateurs. I also enjoy helping and working with those who aspire at becoming masters of their craft.
Find all posts by this user
Like Post
The following 1 user Likes Waltersmind's post:
bplus
05-18-2017, 01:59 AM
Post: #7
 (Print Post)
RE: Draw Font Demo
Quote:
That opens up a world of possibilities right there if one to create a custom DRAW command.

considering that i refuse (so far) to load fig up with tons of little graphics routines, bplus is a huge push towards doing graphics as usual. it was actually graphics that got me into computers, though they were drawn with the mouse. i was about 12 when i started using line and pset.

the draw command and in particular ta mixed with for loops and str$(t$) were instrumental in getting me to be able to do anything i do with graphics. im not a natural with graphics at all-- i used to spend weeks thinking "if i could plot a circle..." (no internet back then, no one to say x = cos and y = sin but a guy in high school tried to tell me once) "...how could i use that to draw a line at a certain angle."

"i could draw a dot at a certain number of degrees, but what if i want it to go a certian number of pixels in..." (if youre giggling bplus, thats ok, its funny.)

uh, radius? anyway ive got it pretty much figured out (what i want to so far i mean) and ive explained some of it to bplus, but he *is* a natural at graphics. i dont think he realized he was natural at processing a simple language, but thats what draw strings are-- a simple computer language with virtually all the basic elements of a "real" one.
Find all posts by this user
Like Post
The following 1 user Likes figosdev's post:
bplus
05-18-2017, 07:02 AM (This post was last modified: 05-18-2017 08:17 AM by bplus.)
Post: #8
 (Print Post)
RE: Draw Font Demo
Nostalgia time:

For me my first exposure to BASIC outside of college was GW Basic with DOS.

Sure I knew sin and cos, from math but never saw it applied with graphics so never used it with GW. I was into points, lines, rectangles and circles and all you could do with those, specially along with RND.

I played with quick graphics programs one after another, with this or that little mod, my joy filled starting experience with BASIC.

That was what got me hooked with BASIC. That was what got me entranced with coding.

I never fully realized what could be done with Sin and Cos until BP.org times (25 years after GW and computer programming gap) and a simple demo by figosdev for hexagon combined with others use of the trig functions. It took some figuring out.

Ha! And Look at Plasma and how it works so beautifully.



To figosdev,

I assume you are still gearing fig towards kids, unless you have had a change of heart concerning that, I can't see how you could possibly leave graphing stuff out and still be appealing to kids, IMO.

Appeal to kids, and you bring out the kid in all of us!

I think that is the source of joy, IMO.
Find all posts by this user
Like Post
05-18-2017, 08:09 AM
Post: #9
 (Print Post)
RE: Draw Font Demo
Quote:
I assume you are still gearing fig towards kids, unless you have had change of heart concerning that, I can't see how you could possibly leave graphing stuff out and still be appealing to kids, IMO.

Appeal to kids, and you bring out the kid in all of us!

fig has some (minimal) graphics features. i will do a thread about designing languages for kids.
Find all posts by this user
Like Post



Forum Jump:


User(s) browsing this thread: 1 Guest(s)




QB64 Member Project - Qubic
QB64 Member Project - Rubix's Magic
QB64 Member Project - Rotating Background
QB64 Member Project - Overboard
QB64 Member Project - Swirl
QB64 Member Project - Touche
QB64 Member Project - Color Rotating Text
QB64 Member Project - Connect Four
QB64 Member Project - MAPTRIANGLE
QB64 Member Project - Quarto
QB64 Member Project - Kobolts Monopoly
QB64 Member Project - Splatter
QB64 Member Project - Martin Fractals version four
QB64 Member Project - OpenGL Triangles
QB64 Member Project - Inside Moves
QB64 Member Project - Algeria Weather
QB64 Member Project - Blokus
QB64 Member Project - Line Thickness
QB64 Member Project - ARB Checkers
QB64 Member Project - Foursight
QB64 Member Project - Dakapo
QB64 Member Project - Sabotage
QB64 Member Project - Red Scrolling LED Sign
QB64 Member Project - Color Triangles
QB64 Member Project - Point Blank
QB64 Member Project - Exit
QB64 Member Project - Kings Court
QB64 Member Project - Domain
QB64 Member Project - Bowditch curve
QB64 Member Project - Martin Fractals version two
QB64 Member Project - Score 4
QB64 Member Project - Spiro Roses
QB64 Member Project - Martin Fractals version three
QB64 Member Project - 9 Board
QB64 Member Project - Isolation
QB64 Member Project - Martin Fractals version one
QB64 Member Project - Kings Valley verion one
QB64 Member Project - Kings Vallery version two
QB64 Member Project - RGB Color Wheel
QB64 Member Project - Amazon
QB64 Member Project - Full Color LED Sign
QB64 Member Project - Pivet version one
QB64 Member Project - Pivot version two
QB64 Member Project - Input
QB64 Member Project - Dreamy Clock
QB64 Member Project - Basic Dithering
QB64 Member Project - Spinning Color Wheel
QB64 Member Project - Othello
QB64 Member Project - STxAxTIC 3D World