From bd052d82430af67dabb7fcd13f33821c2bcd3a75 Mon Sep 17 00:00:00 2001 From: David Cosby <davjcosby@gmail.com> Date: Mon, 16 Dec 2024 22:25:13 -0700 Subject: [PATCH] Removed old usage of color coercion --- README.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 11ba88e..40f4c57 100644 --- a/README.md +++ b/README.md @@ -120,17 +120,14 @@ A few other handy output methods: let leds = sled.leds(); // An Iterator of Led structs (holds color, position, distance/angle relative from center, etc) -let colors_u8 = sled.colors_coerced::<u8>(); -// An Iterator of Rgbs, 8-bits/channel +let positions = sled.positions(); +// An Iterator of whatever type you chose to represent colors in. let positions = sled.positions(); // An Iterator of Vec2s, representing the position of each LED -let colors_f32_and_positions = sled.colors_and_positions(); -// An Iterator of (Rgb, Vec2) tuple pairs representing each LEDs color and position. - -let colors_f32_and_positions = sled.colors_and_positions_coerced::<u8>(); -// An Iterator of (Rgb<u8>, Vec2) tuple pairs representing each LEDs color and position. +let colors_and_positions = sled.colors_and_positions(); +// An Iterator of (COLOR_TYPE, Vec2) tuple pairs representing each LEDs color and position. ``` # Advanced Features