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.
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.
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.
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.
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.
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!