Flat design bargraph

Share your advanced PureBasic knowledge/code with the community.
l1marik
User
User
Posts: 49
Joined: Tue Jun 30, 2020 6:22 am

Flat design bargraph

Post by l1marik »

Flat design bargraph
Image
Source here: https://www.ctvrtky.info/wp-content/upl ... zontal.tar

Can somebody check it on OSX + feedback welcomed!

Added 14.7.202
Flat design bargraph - vertical version
Image
Source here: http://www.ctvrtky.info/wp-content/uplo ... rtical.tar

Lukas
Last edited by l1marik on Tue Jul 14, 2020 10:06 am, edited 1 time in total.
User avatar
Saki
Addict
Addict
Posts: 830
Joined: Sun Apr 05, 2020 11:28 am
Location: Pandora

Re: Flat design bargraph

Post by Saki »

Hi, to time i have not MacOS available, but it should work.

Two tipp for you :

Add this function so :

Code: Select all

 If StartVectorDrawing(CanvasVectorOutput(parent_canvas))
    ScaleCoordinates(DesktopResolutionX(), DesktopResolutionY())
Activate DPI_aware in the PB compiler options

So you get DPI awareness and it look many better :wink:

You make nice things, I like it.

If you run this somewhere where other window timers are running it will start
to stutter because window timers have a very low priority.
So it is always better to use a ElapsedMilliseconds() based solution.

Best Regards Saki
地球上の平和
User avatar
skywalk
Addict
Addict
Posts: 3994
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: Flat design bargraph

Post by skywalk »

Yes, keep coping. Your stuff is beautiful. 8)
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
l1marik
User
User
Posts: 49
Joined: Tue Jun 30, 2020 6:22 am

Re: Flat design bargraph

Post by l1marik »

Dear Saki,
thank you for comments. About timing I know it, but code is for testing purpose, it means without threads etc...

Thank you for testing!

Lukas
User avatar
Mindphazer
Enthusiast
Enthusiast
Posts: 341
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Re: Flat design bargraph

Post by Mindphazer »

Hi, just tried on MacOS X, and no problem so far

Really nicely done !
MacBook Pro 14" M1 Pro - 16 Gb - MacOS 14 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Flat design bargraph

Post by davido »

@ l1marik,
Impressive. Looks great on my MacBook Pro.
Thank you for sharing. :D
DE AA EB
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2057
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: Flat design bargraph

Post by Andre »

Very well done, thanks for sharing! :D
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
Mohsen

Re: Flat design bargraph

Post by Mohsen »

Your working style is awesome, please continue. :D
Thanks for sharing.
GoodNPlenty
Enthusiast
Enthusiast
Posts: 108
Joined: Wed May 13, 2009 8:38 am
Location: Arizona, USA

Re: Flat design bargraph

Post by GoodNPlenty »

Amazing work, Thank You for sharing!
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5353
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Flat design bargraph

Post by Kwai chang caine »

Very nice thanks for sharing 8)
ImageThe happiness is a road...
Not a destination
Post Reply