# Vector:ToColor

- **Ortam:** İstemci, Sunucu
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/Vector:ToColor
- **Çeviri tarihi:** 2025-09-08

```lua
Color Vector:ToColor()
```

## Açıklama

[Vector](https://gmod.tr/wiki/Vector)'ü (0 ile 1 arasında değişen değerlere sahip) bir [Color](https://gmod.tr/wiki/Color)'a çevirir. Bu ayrıca değer aralığını 0 - 1'den 0 - 255'e yükseltir.

x * 255 -> r
y * 255 -> g
z * 255 -> b

Bu, [Color:ToVector](https://gmod.tr/wiki/Color:ToVector)'ın tersidir.

## Döndürülen Değerler

1. [Color](https://gmod.tr/wiki/Color): Oluşturulan [Color](https://gmod.tr/wiki/Color).

### Örnek

1. Oyuncunun model rengini RGB olarak alır.

```lua
print( Entity( 1 ):GetPlayerColor( ):ToColor( ) )
```

**Çıktı:** 1. Oyuncunun oyuncu rengini bir Vektör yerine RGB olarak yazdırır.

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/Vector:ToColor
