Jump to content




making fill-up bars


  • You cannot reply to this topic
2 replies to this topic

#1 qwerty

  • Members
  • 72 posts
  • LocationThe Sand Dunes

Posted 22 November 2018 - 10:51 PM

Hi everyone!

I'm working on a program ment to controll a reactor, but I'm stuck on the full-up bar part.
I can't seem to get it working on almost any level so I'd apreciate some help!
I just want to implement a 48x3 fill-up bar filling from left to right based on a percentage, and that's realy where i'm struggeling because, what ever arithmetics i've tried i fail.
I realy only need the part where i can devide the 48 by a percentage.

With regards,
Qwerty.

#2 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 23 November 2018 - 12:17 AM

View Postqwerty, on 22 November 2018 - 10:51 PM, said:

I realy only need the part where i can devide the 48 by a percentage.

Easier to multiply 48 by a percentage.

current value / maximum value * 48


#3 qwerty

  • Members
  • 72 posts
  • LocationThe Sand Dunes

Posted 23 November 2018 - 01:27 AM

View PostBomb Bloke, on 23 November 2018 - 12:17 AM, said:

View Postqwerty, on 22 November 2018 - 10:51 PM, said:

I realy only need the part where i can devide the 48 by a percentage.
Easier to multiply 48 by a percentage.
current value / maximum value * 48
thanks!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users