Discuss Scratch
- Discussion Forums
- » Requests
- » Pie chart engine
- xylidine
-
New Scratcher
100+ posts
Pie chart engine
Are there any non-pen pie chart engines following the requirements below?
All in 1 sprite
Non-Pen (No pen extension please)
At least 4 slices (parts, segments, sections, whatever you call it)
Variables should constantly influence all slices (for example, the first slice would constantly be influenced by variable1)
Colors of the slices can be anything, but I prefer shades of yellow to match the theme of my game
Should be able to go to any x,y coordinate
A variable should control the size of the pie chart
A broadcast or function should show and hide the entire pie chart
Just need the pie chart itself, no labels
This is the best example I've found that follows some of the requirements listed above
All in 1 sprite
Non-Pen (No pen extension please)
At least 4 slices (parts, segments, sections, whatever you call it)
Variables should constantly influence all slices (for example, the first slice would constantly be influenced by variable1)
Colors of the slices can be anything, but I prefer shades of yellow to match the theme of my game
Should be able to go to any x,y coordinate
A variable should control the size of the pie chart
A broadcast or function should show and hide the entire pie chart
Just need the pie chart itself, no labels
This is the best example I've found that follows some of the requirements listed above
Last edited by xylidine (Yesterday 14:09:42)
- Quantum-Cat
-
Scratcher
1000+ posts
Pie chart engine
Instead of pen, you can clone circle sectors to make the pie chart
https://scratch.mit.edu/projects/1254706792/
This project satisfies the requirements you have
There are definitely a few improvements you can make:
https://scratch.mit.edu/projects/1254706792/
This project satisfies the requirements you have
There are definitely a few improvements you can make:
- Make it more efficient by using larger circle sectors for bigger slices (right now it only uses ~6 degree sectors, so it takes up 63 clones)
- Make it have higher resolution (right now, it has a resolution of ~6 degrees)
- xylidine
-
New Scratcher
100+ posts
Pie chart engine
Instead of pen, you can clone circle sectors to make the pie chart
https://scratch.mit.edu/projects/1254706792/
This project satisfies the requirements you have
There are definitely a few improvements you can make:
- Make it more efficient by using larger circle sectors for bigger slices (right now it only uses ~6 degree sectors, so it takes up 63 clones)
- Make it have higher resolution (right now, it has a resolution of ~6 degrees)
Like the example I previously posted, can you make it constantly change depending on the corresponding value in the list? In the example, changing the variable simultaneously changes the corresponding slice amount. That is what I really need.
- Discussion Forums
- » Requests
-
» Pie chart engine