Skip to content
Dima Marhitych edited this page Oct 23, 2023 · 1 revision

Api to shape module

Import it like this:

import (
    "github.com/dimkauzh/vertex/src/shape"
)

Structs

type Rect struct {
  Pos    vector.Vector2D
  Width  float32
  Height float32
  Color  [3]float32
}

Functions

func (r *Rect) Draw()
func NewRect(x, y, width, height float32, color [3]float32) -> *Rect
Clone this wiki locally