> ## Documentation Index
> Fetch the complete documentation index at: https://docs.projectreal.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Drawing.new

> Istenen turde yeni bir Drawing object olusturur ve Real tracked Drawing object list icine ekler. type string su tam desteklenen adlardan biri olmalidir: "Line", "Text", "Circle", "Square", "Quad", "Triangle", "Image". Eksik, non-string veya desteklenmeyen type values Lua error olusturur. the Drawing API bu APIyi yalnizca the required rendering environment is active true oldugunda kaydeder; bu kontrol false oldugunda initializer bu globals degerlerini olusturmadan once doner.

<div className="real-function-page">
  ```lua theme={null}
  Drawing.new(objectType: "Image" | "Line" | "Text" | "Circle" | "Square" | "Quad" | "Triangle"): DrawingObject
  ```

  ## Argümanlar

  <ParamField path={"objectType"} type={"\"Image\" | \"Line\" | \"Text\" | \"Circle\" | \"Square\" | \"Quad\" | \"Triangle\""} required>
    Olusturulacak tam Drawing type name. Desteklenen degerler "Line", "Text", "Circle", "Square", "Quad", "Triangle", "Image".
  </ParamField>

  ## Dönüşler

  <ResponseField name={"object"} type={"DrawingObject"}>
    Drawing object type ile olusturulan Drawing object.
  </ResponseField>

  ## Örnek

  Görünür bir kare oluşturun ve temel çizim özelliklerini yapılandırın.

  ```lua theme={null}
  local square = Drawing.new("Square")
  square.Position = Vector2.new(120, 120)
  square.Size = Vector2.new(220, 120)
  square.Color = Color3.fromRGB(120, 170, 255)
  square.Filled = true
  square.Visible = true
  ```
</div>
