This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @tool | |
| class_name Star2D | |
| extends Polygon2D | |
| @export var peaks: int = 10 | |
| @export var peak_randomness: int = 2 | |
| @export_range(0.0, 1.0, 0.001) var angle_randomness: float = 0.0 | |
| @export_range(0, 360, 0.01, "radians_as_degrees") var min_start_angle: float = 0.0 | |
| @export_range(0, 360, 0.01, "radians_as_degrees") var max_start_angle: float = TAU | |
| @export var low_radius: float = 20.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from math import * |