# Turn color to rgb values

**URL:** <https://community.thunkable.com/t/turn-color-to-rgb-values/1576980>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [October 23, 2021, 11:37am UTC](https://community.thunkable.com/t/turn-color-to-rgb-values/1576980 "2021-10-23T11:37:52Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![smailovtimofey4ukx](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/smailovtimofey4ukx/32/117105_2.png) [@smailovtimofey4ukx](https://community.thunkable.com/u/smailovtimofey4ukx)\
**Post date:** [October 23, 2021, 11:37am UTC](https://community.thunkable.com/t/turn-color-to-rgb-values/1576980/1 "2021-10-23T11:37:52Z")

</div>

Hello, how i can split color to red, green and blue value

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [October 23, 2021, 11:40am UTC](https://community.thunkable.com/t/turn-color-to-rgb-values/1576980/2 "2021-10-23T11:40:05Z")

</div>

Hey @smailovtimofey4ukx

You should be able to use the `split at` text block, and use a comma as your delimiter.

Does something like that work for you?

---

<div class="post-metadata">

**Author:** ![smailovtimofey4ukx](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/smailovtimofey4ukx/32/117105_2.png) [@smailovtimofey4ukx](https://community.thunkable.com/u/smailovtimofey4ukx)\
**Post date:** [October 23, 2021, 11:43am UTC](https://community.thunkable.com/t/turn-color-to-rgb-values/1576980/3 "2021-10-23T11:43:28Z")

</div>

> [@domhnallohanlon](#):
>
> You should be able to use the `split at` text block, and use a comma as your delimiter.
> 
> Does something like that work for you?

Iam using get color at position in canavas to get color.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [October 23, 2021, 2:00pm UTC](https://community.thunkable.com/t/turn-color-to-rgb-values/1576980/4 "2021-10-23T14:00:14Z")

</div>

And is that returning the colour in RGB() format @smailovtimofey4ukx?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [October 23, 2021, 2:59pm UTC](https://community.thunkable.com/t/turn-color-to-rgb-values/1576980/5 "2021-10-23T14:59:23Z")

</div>

Can you show your blocks?

I used this to convert

Setup necessary variables  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/1/41a1fffcfb16ac8fca04f4850bd0bdb1af7a3ef6.png)

Main block

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/2/62862263265b996d83f831f3a551e2bcfe3b1473.png)

Supporting functions

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/4/c4cf32b5e0aa2b379e7df22fc4d4130117066fcd.png)

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/4/f42d811f628025a680eab96b0f804276b562362c.png)

Result:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/9/a9230aa027d130de7d84c6028706d8a3b074ea5a.png)

This is a first attempt and you can enhance it a lot but it works.

---

<div class="post-metadata">

**Author:** ![smailovtimofey4ukx](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/smailovtimofey4ukx/32/117105_2.png) [@smailovtimofey4ukx](https://community.thunkable.com/u/smailovtimofey4ukx)\
**Post date:** [October 23, 2021, 5:40pm UTC](https://community.thunkable.com/t/turn-color-to-rgb-values/1576980/6 "2021-10-23T17:40:13Z")

</div>

Yes, that works  
Thanks

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [October 24, 2021, 9:57am UTC](https://community.thunkable.com/t/turn-color-to-rgb-values/1576980/7 "2021-10-24T09:57:19Z")

</div>

@smailovtimofey4ukx  
Please see my revised blocks for the same. I know you have already accepted the previous solution but this is an enhanced version.

- The variables:  

- The main block:  

- Supporting functions:  

- Sample result:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/1/f1b09f5b8b4d2982430780115717163b02c59f67.png)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:14pm UTC](https://community.thunkable.com/t/turn-color-to-rgb-values/1576980/8 "2024-11-08T13:14:43Z")

</div>


