# GWEN

- **İngilizce aslı:** https://wiki.facepunch.com/gmod/GWEN
- **Çeviri tarihi:** 2025-09-08

GWEN, bir spritesheet (sprite atlası) yüklemenize ve ondan bir skin (görünüm) oluşturmanıza olanak tanıyan bir sistemdir.

## Metotlar

[function](https://gmod.tr/wiki/function) GWEN.[CreateTextureBorder](https://gmod.tr/wiki/GWEN.CreateTextureBorder)( [number](https://gmod.tr/wiki/number) x, [number](https://gmod.tr/wiki/number) y, [number](https://gmod.tr/wiki/number) w, [number](https://gmod.tr/wiki/number) h, [number](https://gmod.tr/wiki/number) left, [number](https://gmod.tr/wiki/number) top, [number](https://gmod.tr/wiki/number) right, [number](https://gmod.tr/wiki/number) bottom, [IMaterial](https://gmod.tr/wiki/IMaterial) material = nil )

Bu, ölçeklenebilir dokulu kenarlıkları işlemek için özel bir çizim fonksiyonu üreten bir yardımcı fonksiyondur. Bu işlem, 9 dilimli ölçeklendirme (9-slice scaling) ile yapılır. Bu, derma skinlerinde bir görselden kenarlıklı bir dikdörtgen çizim fonksiyonu oluşturmak için kullanılır. Doku, material argümanı sağlanmadığında SKIN.GwenTexture'dan alınır.

[function](https://gmod.tr/wiki/function) GWEN.[CreateTextureCentered](https://gmod.tr/wiki/GWEN.CreateTextureCentered)( [number](https://gmod.tr/wiki/number) x, [number](https://gmod.tr/wiki/number) y, [number](https://gmod.tr/wiki/number) w, [number](https://gmod.tr/wiki/number) h, [IMaterial](https://gmod.tr/wiki/IMaterial) material = nil )

Derma skinlerinde, bir görselden sabit ölçekli bir dikdörtgen çizim fonksiyonu oluşturmak için kullanılır. Çizim, kutunun ortasına yerleştirilecektir. Doku, material sağlanmadığında SKIN.GwenTexture'dan alınır.

[function](https://gmod.tr/wiki/function) GWEN.[CreateTextureNormal](https://gmod.tr/wiki/GWEN.CreateTextureNormal)( [number](https://gmod.tr/wiki/number) x, [number](https://gmod.tr/wiki/number) y, [number](https://gmod.tr/wiki/number) w, [number](https://gmod.tr/wiki/number) h, [IMaterial](https://gmod.tr/wiki/IMaterial) material = nil )

Verilen alana serbestçe sığacak şekilde ölçeklenen bir dokuyu işlemek için özel bir çizim fonksiyonu döndüren yardımcı fonksiyondur. Doku, material sağlanmadığında SKIN.GwenTexture'dan alınır.

[table](https://gmod.tr/wiki/table) GWEN.[TextureColor](https://gmod.tr/wiki/GWEN.TextureColor)( [number](https://gmod.tr/wiki/number) x, [number](https://gmod.tr/wiki/number) y )

Belirtilen UV koordinatlarındaki bir materyalin dokusundan renk bilgisini alı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/GWEN
