hello alex, i have an hsv to rgb patch for data structures if you want... <div><br></div><div>but for 0 to 255 rgb values, the math is simple, just divide this number by 9/255 and discard the fractional part, then multiply by the position and sum all (it gives a number from 0 to 999)</div><div><br></div><div>so, if you have 255 for red, 100 for green and 50 for blue</div><div><br></div><div>255*9/255 = 9 </div><div>red position is times 100, so 900</div><div><br></div><div>100*9/255 = 3.529...</div><div>green position is times 10, so 30</div><div><br></div><div>50*9/255 = 1.764...</div><div>blue position is times 1, so 1</div><div><br></div><div>the number is then 931</div><div><br></div><div>unfortunately, data structure colors doesn't have so much resolution, so this color isn't really the same as 255 100 50, but, is what we can achieve...</div><div><br></div><div>(i don't remember if the order is red green blue for data structures and don't have pd right now to test, but if it was wrong, just change the positions, the math is ok kk)<br><div dir="auto"><br></div><div dir="auto"><br><br><div class="gmail_quote"><div dir="ltr">Em Sex, 2 de mar de 2018 13:13, Alexandre Torres Porres <<a href="mailto:porres@gmail.com">porres@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">please ignore the last mail, :)</div><div class="gmail_extra"><br><div class="gmail_quote">Em 2 de março de 2018 13:12, Alexandre Torres Porres <span dir="ltr"><<a href="mailto:porres@gmail.com" target="_blank">porres@gmail.com</a>></span> escreveu:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">mas também não seria pra agora uma turma aos sábados, muito menos algo garantido, apenas uma menina falou que, a partir de maio, ela queira, mas até isso se concretizar (visto que essa turma no face tem lá seus 70 interessados e nem fechou... rsrs) é outra história</div><div class="m_969560452280739239HOEnZb"><div class="m_969560452280739239h5"><div class="gmail_extra"><br><div class="gmail_quote">2018-03-02 12:48 GMT-03:00 Alexandre Torres Porres <span dir="ltr"><<a href="mailto:porres@gmail.com" target="_blank">porres@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_969560452280739239m_-3874816913156056511HOEnZb"><div class="m_969560452280739239m_-3874816913156056511h5"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hi there, trying to find a RGB color picker online that works with Pd's data structure's scheme, but can't figure it out.<div><br></div><div>hints?</div><div><br></div><div>thanks</div></div>
</div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div></div></div>