<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://digida.mgpu.ru/index.php?action=history&amp;feed=atom&amp;title=Pie_Chart_Creation</id>
	<title>Pie Chart Creation - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://digida.mgpu.ru/index.php?action=history&amp;feed=atom&amp;title=Pie_Chart_Creation"/>
	<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Pie_Chart_Creation&amp;action=history"/>
	<updated>2026-05-16T19:14:48Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=Pie_Chart_Creation&amp;diff=14128&amp;oldid=prev</id>
		<title>Patarakin в 10:47, 8 декабря 2023</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Pie_Chart_Creation&amp;diff=14128&amp;oldid=prev"/>
		<updated>2023-12-08T10:47:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 13:47, 8 декабря 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Строка 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Scripting Tutorials}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This page will describe the steps to make a simple &amp;#039;&amp;#039;&amp;#039;pie chart&amp;#039;&amp;#039;&amp;#039;, with instructions on drawing circles, sectioning, and mouse-over effects.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This page will describe the steps to make a simple &amp;#039;&amp;#039;&amp;#039;pie chart&amp;#039;&amp;#039;&amp;#039;, with instructions on drawing circles, sectioning, and mouse-over effects.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l68&quot;&gt;Строка 68:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 69:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;pen up&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;pen up&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/scratchblocks&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/scratchblocks&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[File:Pie Chart 2.png|201px|thumb|right|The result of the script in &quot;Coloring Sectors&quot;, with radius&amp;amp;nbsp;=&amp;amp;nbsp;100, turn&amp;amp;nbsp;angle&amp;amp;nbsp;=&amp;amp;nbsp;0.5, angle&amp;amp;nbsp;1&amp;amp;nbsp;=&amp;amp;nbsp;140, angle&amp;amp;nbsp;2&amp;amp;nbsp;=&amp;amp;nbsp;-100]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here, angle 1 represents the direction of the edge between the red and blue sectors. and angle 2 represents the direction of the edge between the blue and yellow sectors. The colors, of course, can be changed to whatever the project maker wishes, and more colors can be used.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here, angle 1 represents the direction of the edge between the red and blue sectors. and angle 2 represents the direction of the edge between the blue and yellow sectors. The colors, of course, can be changed to whatever the project maker wishes, and more colors can be used.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Patarakin</name></author>
	</entry>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=Pie_Chart_Creation&amp;diff=14124&amp;oldid=prev</id>
		<title>Patarakin в 10:34, 8 декабря 2023</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Pie_Chart_Creation&amp;diff=14124&amp;oldid=prev"/>
		<updated>2023-12-08T10:34:59Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 13:34, 8 декабря 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot;&gt;Строка 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Circles in General==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Circles in General==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[List of Mathematical Functions Done in Scratch|Mathematical Functions]] are important while using geometry or math in general on [[Scratch]]. This page will cover the various formulas needed in Scratch, while also going over the circle formulas.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[List of Mathematical Functions Done in Scratch|Mathematical Functions]] are important while using geometry or math in general on [[Scratch]]. This page will cover the various formulas needed in Scratch, while also going over the circle formulas.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[File:Pie-chart.jpg|200px|thumb|right|An example pie chart made outside of Scratch]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Circle Formulas===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===Circle Formulas===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Patarakin</name></author>
	</entry>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=Pie_Chart_Creation&amp;diff=1844&amp;oldid=prev</id>
		<title>Patarakin: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Pie_Chart_Creation&amp;diff=1844&amp;oldid=prev"/>
		<updated>2022-07-21T08:33:17Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 11:33, 21 июля 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Patarakin</name></author>
	</entry>
	<entry>
		<id>http://digida.mgpu.ru/index.php?title=Pie_Chart_Creation&amp;diff=1843&amp;oldid=prev</id>
		<title>scratch&gt;Jvvg в 21:42, 6 июня 2022</title>
		<link rel="alternate" type="text/html" href="http://digida.mgpu.ru/index.php?title=Pie_Chart_Creation&amp;diff=1843&amp;oldid=prev"/>
		<updated>2022-06-06T21:42:05Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This page will describe the steps to make a simple &amp;#039;&amp;#039;&amp;#039;pie chart&amp;#039;&amp;#039;&amp;#039;, with instructions on drawing circles, sectioning, and mouse-over effects.&lt;br /&gt;
&lt;br /&gt;
==Circles in General==&lt;br /&gt;
[[List of Mathematical Functions Done in Scratch|Mathematical Functions]] are important while using geometry or math in general on [[Scratch]]. This page will cover the various formulas needed in Scratch, while also going over the circle formulas.&lt;br /&gt;
[[File:Pie-chart.jpg|200px|thumb|right|An example pie chart made outside of Scratch]]&lt;br /&gt;
&lt;br /&gt;
===Circle Formulas===&lt;br /&gt;
In this section:&lt;br /&gt;
&lt;br /&gt;
* pi is the value of [[Calculating Pi|Pi]] (3.14159...)&lt;br /&gt;
* r is the radius of the circle&lt;br /&gt;
&lt;br /&gt;
This will calculate the area of a circle:&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
((pi) * ((r) * (r))) // pi * r squared&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and this will calculate the circumference of a circle:&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
((2) * ((pi) * (r)))&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Using Pi===&lt;br /&gt;
The value of pi is not provided in a block, so some users like to approximate it by the first several digits, such as by 3.1415926535.&lt;br /&gt;
&lt;br /&gt;
==Example Scripts==&lt;br /&gt;
&lt;br /&gt;
=== Drawing Filled Circles===&lt;br /&gt;
&lt;br /&gt;
In this case, the viewer will be able to see the circle being drawn. If a smaller value is used for the turn angle, the circle will look bolder, but the drawing will take longer to finish. The drawing can be sped up by activating [[Turbo Mode]].&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
point in direction (0)&lt;br /&gt;
go to x: (0) y: (0)&lt;br /&gt;
pen down&lt;br /&gt;
repeat ((360) / (turn angle))&lt;br /&gt;
move (radius) steps&lt;br /&gt;
go to x: (0) y: (0)&lt;br /&gt;
turn right (turn angle) degrees&lt;br /&gt;
end&lt;br /&gt;
pen up&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In this script:&lt;br /&gt;
* Radius is the radius of the circle&lt;br /&gt;
* Turn angle is how many degrees to turn&lt;br /&gt;
&lt;br /&gt;
===Coloring Sectors===&lt;br /&gt;
&lt;br /&gt;
Most pie charts, like the example provided, have sectors filled with different colors. This is a modification of the basic circle script from before, which can color some sectors with various colors:&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
point in direction (0)&lt;br /&gt;
go to x: (0) y: (0)&lt;br /&gt;
pen down&lt;br /&gt;
repeat ((360) / (turn angle))&lt;br /&gt;
if &amp;lt; ((direction) mod (360)) &amp;lt; ((angle 1) mod (360)) &amp;gt; then&lt;br /&gt;
set pen color to (#FF0000)&lt;br /&gt;
else&lt;br /&gt;
if &amp;lt; ((direction) mod (360)) &amp;lt; ((angle 2) mod (360)) &amp;gt; then&lt;br /&gt;
set pen color to (#0000FF)&lt;br /&gt;
else&lt;br /&gt;
set pen color to (#FFFF00)&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
move (radius) steps&lt;br /&gt;
go to x: (0) y: (0)&lt;br /&gt;
turn right (turn angle) degrees&lt;br /&gt;
end&lt;br /&gt;
pen up&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
[[File:Pie Chart 2.png|201px|thumb|right|The result of the script in &amp;quot;Coloring Sectors&amp;quot;, with radius&amp;amp;nbsp;=&amp;amp;nbsp;100, turn&amp;amp;nbsp;angle&amp;amp;nbsp;=&amp;amp;nbsp;0.5, angle&amp;amp;nbsp;1&amp;amp;nbsp;=&amp;amp;nbsp;140, angle&amp;amp;nbsp;2&amp;amp;nbsp;=&amp;amp;nbsp;-100]]&lt;br /&gt;
Here, angle 1 represents the direction of the edge between the red and blue sectors. and angle 2 represents the direction of the edge between the blue and yellow sectors. The colors, of course, can be changed to whatever the project maker wishes, and more colors can be used.&lt;br /&gt;
&lt;br /&gt;
===Mouseovers===&lt;br /&gt;
&lt;br /&gt;
This code makes text display and plays a sound when the [[mouse-pointer]] is hovered over a portion of the pie chart.&lt;br /&gt;
&lt;br /&gt;
First create this simple script, in a sprite that is smaller than the mouse-pointer:&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when flag clicked&lt;br /&gt;
forever&lt;br /&gt;
go to (mouse-pointer v)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That will make the sprite follow the mouse-pointer while the project is running. The following script (for the same sprite) will play the &amp;quot;pop&amp;quot; sound and announce when the mouse-pointer hovers over a section of the pie chart:&lt;br /&gt;
&amp;lt;scratchblocks&amp;gt;&lt;br /&gt;
when flag clicked&lt;br /&gt;
forever&lt;br /&gt;
if &amp;lt;touching color [#FF0000]?&amp;gt; then // color of section 1&lt;br /&gt;
start sound (pop v)&lt;br /&gt;
repeat until &amp;lt; not &amp;lt;touching color [#FF0000]?&amp;gt; &amp;gt;&lt;br /&gt;
say [Section 1]&lt;br /&gt;
end&lt;br /&gt;
say []&lt;br /&gt;
end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/scratchblocks&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Scripting Tutorials]]&lt;/div&gt;</summary>
		<author><name>scratch&gt;Jvvg</name></author>
	</entry>
</feed>