Skip to content

Commit

Permalink
Rename file and updated it
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkauzh committed Oct 8, 2023
1 parent 4581b45 commit cf8e396
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
32 changes: 32 additions & 0 deletions example/example.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package main

import (
// Import the webzen package
"github.com/dimkauzh/webzen/src/webzen"

// Import the webzen draw package
"github.com/dimkauzh/webzen/src/webzen/draw"
)

func main() {
// Initialize webzen
webzen.Init()

// Start loop
for {
// Fill background
draw.FillBackground([4]int{255, 255, 188, 255})

// Draw text on the screen
draw.DrawText("Hello, world!", 21, 100, 100)

// Draw a rectangle on the screen
draw.DrawRect(50, 500, 400, 400, [4]int{146, 255, 123, 255})

// Draw a second rectangle on the screen
draw.DrawRect(200, 200, 100, 400, [4]int{146, 255, 123, 255})

// Update
webzen.Update()
}
}
32 changes: 0 additions & 32 deletions example/main.go

This file was deleted.

0 comments on commit cf8e396

Please sign in to comment.