RE: Help with Simple Graphics Demo

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hey CK,

A thought just came to mind that you might want to donate some code as a 
Win32Lib demo before it gets too complicated.  At least it's a way to 
keep it from getting buried into the list.  I donated my defective 
'dots' demos and they easily made in into the distro.  (personally, I 
think most of the current demos suck; this one would actually be "fun").

-- Brian

EUPHORiCK wrote:
> 
> 
> Brian Broker wrote:
> 
> >Oh, now I see what you are trying to do.  You want to set the window 
> >height to account for the biggest number you'll get in the set.  Since 
> >the y-value of the line is based on dice_results[slot], you'll need to 
> >rebuild that sequence...  try this:
> >
> >    dice_results = repeat(0,dice_sides*dice_num-dice_num+1)
> >    for i=1 to dice_rolls do
> >      slot = rolls[i]
> >      dice_results[slot] += 1
> >      drawLine(Graph,30*(slot)-30,graph_size[2]-20-dice_results[slot],
> >                     30*(slot)-20,graph_size[2]-20-dice_results[slot])
> >      copyBlt(Window1,8,84,Graph)
> >    end for
> >  
> >
> Works great, Brian. Thanks a LOT for your help. :)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu