102 {
103
105
106 int num_leds =
args.num_leds;
107 float leds_per_turn =
args.leds_per_turn;
108 float width_cm =
args.width_cm;
109
110
111 const float circumference = leds_per_turn;
112 const float radius = circumference / (2.0 *
FL_PI);
113 const float angle_per_led = 2.0 *
FL_PI / leds_per_turn;
114 const float height_per_turn_cm = width_cm;
115 const float height_per_led =
116 height_per_turn_cm /
117 leds_per_turn * 1.3;
118
119
120
121 for (int i = 0; i < num_leds; i++) {
122 float angle = i * angle_per_led;
123 float r = radius + 10 + i * height_per_led;
124
125
128
129
131 }
132
133 FL_WARN(
"Creating fl::ScreenMap with:\n" << points);
134
135
138}
enable_if< is_fixed_point< T >::value, T >::type cos(T angle) FL_NOEXCEPT
enable_if< is_fixed_point< T >::value, T >::type sin(T angle) FL_NOEXCEPT