Home > Software Tutorial > Computer Software > How to make the inside of a triangle change color using Geometric Sketchpad

How to make the inside of a triangle change color using Geometric Sketchpad

WBOY
Release: 2024-04-16 14:40:24
forward
637 people have browsed it

php Editor Yuzai introduces Winter Rhapsody, which is a character plot simulation game based on a small town story, integrating Japanese characteristics. Players will face various in-depth puzzle-solving challenges, and skill operations are crucial. The game not only has interesting content waiting to be experienced, but also provides a wealth of skill-based gameplay. Unlocking all skills will bring a more comprehensive gaming experience!

Draw a triangle. Open the geometric sketchpad, select the [Polygon Tool] on the left toolbar, and draw a triangle ABC in the working area of ​​the sketchpad.

How to make the inside of a triangle change color using Geometric Sketchpad

If it is a simple color change, select the three vertices of the triangle and execute [Construction] - [Triangle Interior] command, at this time the interior of the triangle already has color. If you want to change the color, you can use the move tool to select the inside of the triangle, execute [Display] - [Color], and select a color.

How to make the inside of a triangle change color using Geometric Sketchpad

If the color inside the triangle can be controlled and changed, you need to create parameters first, select the inside of the triangle, then execute the [Color] - [Parameter] command, click the created parameter to change it Color, the operation is as follows.

Create new parameters in the geometry sketchpad. Execute the [Data]-[New Parameter] command and click OK in the pop-up dialog box to create the parameters as shown in the figure.

How to make the inside of a triangle change color using Geometric Sketchpad

Set the newly created parameter as a color parameter. Use the move tool to select the newly created parameter and the inside of the triangle, execute the [Display]-[Color]-[Parameter] command, and the dialog box as shown in the figure will pop up, click OK.

How to make the inside of a triangle change color using Geometric Sketchpad

After executing the above command, use the [ ] and [-] keys on the keyboard to change the parameter value, and you can change the color inside the triangle at will. When the parameter as the color is changed, The color of the triangle changes accordingly.

How to make the inside of a triangle change color using Geometric Sketchpad

The above is the detailed content of How to make the inside of a triangle change color using Geometric Sketchpad. For more information, please follow other related articles on the PHP Chinese website!

source:zol.com.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template