IonicWind Software

Announcements => User Offerings => Topic started by: Andy on March 02, 2021, 04:03:36 AM

Title: Simple graph
Post by: Andy on March 02, 2021, 04:03:36 AM
Hi,

Well before I post my final version of the Hangman game, I just wanted to look at a simple graph since I'm using one in the game.

This example program uses my graph.inc file to create an initial graph, update it (move it along) and optionally clear it from the screen.

It's simple to use / write, and I thought someone might like this little utility.

This version is based on time e.g. whole minutes, but it could easily be modified
to update on a given value as well.

All you have to do is supply some values & colours, that it.

Andy.
Title: Re: Simple graph
Post by: Brian on March 02, 2021, 04:17:21 AM
Andy,

I don't see the GraphFill variable doing anything to change the colour

Brian
Title: Re: Simple graph
Post by: Andy on March 02, 2021, 04:37:14 AM
You're right Brian,

I rushed to get it posted, and have changed the example program and include file now.

The example program should say (in the timer section):

IF UpDateGraph(w1,GraphOutline,GraphFill) = 100  'Update the graph

Thanks Eagle eyes!

Andy.
 :)
Title: Re: Simple graph
Post by: Brian on March 02, 2021, 04:50:31 AM
Andy,

There was a small problem with Graph.inc, if you had AUTODEFINE "off" set

Brian
Title: Re: Simple graph
Post by: Andy on March 02, 2021, 05:08:24 AM
Thanks Brian,

GraphMaximum is now declared in the include file (now uploaded).

Think that fixes it (fingers crossed)...

Andy.
:)