Author Topic: Drawing with Go  (Read 280 times)

Tomaaz

  • Sr. Member
  • ****
  • Posts: 340
    • View Profile
Drawing with Go
« on: 09. February 2019, 19:28:37 »
It's extremely easy.

Code: [Select]
package main

import (
"github.com/gen2brain/raylib-go/raylib"
)

func main() {
szer := int32(900)
wys := int32(600)
rl.InitWindow(szer, wys, "Drawing with Golang")
rl.SetTargetFPS(60)
for !rl.WindowShouldClose() {
rl.BeginDrawing()
rl.ClearBackground(rl.RayWhite)
rl.DrawText("As easy as BASIC!", 300, 40, 30, rl.DarkGray)
rl.DrawLine(50, 90, 850, 90, rl.Black)
rl.DrawCircle(450, 350, 10, rl.DarkBlue)
rl.DrawCircleGradient(450, 350, 150, rl.Yellow, rl.DarkGreen)
rl.DrawCircleLines(450, 350, 200, rl.Black)
rl.DrawRectangleLines(10, 10, 880, 580, rl.Red)
rl.DrawRectangleGradientH(50, 100, 50, 50, rl.Maroon, rl.Gold)
rl.DrawRectangle(50, 500, 50, 50, rl.Brown)
rl.DrawRectangle(800, 100, 50, 50, rl.DarkGray)
rl.DrawRectangleGradientH(800, 500, 50, 50, rl.Purple, rl.DarkBlue)
rl.EndDrawing()
}
rl.CloseWindow()
}


Aurel

  • Regular Member
  • Hero Member
  • *
  • Posts: 524
    • View Profile
Re: Drawing with Go
« Reply #1 on: 09. February 2019, 21:38:44 »
ha ha ...extremly easy ....  ;D
then ..Go.....Go...Gooo ..what a ploncker :D

Tomaaz

  • Sr. Member
  • ****
  • Posts: 340
    • View Profile
Re: Drawing with Go
« Reply #2 on: 09. February 2019, 23:04:13 »
ha ha ...extremly easy ....  ;D

Says a person who's planning to learn C. If this is not easy, then well... good luck with your study.  ;D

Aurel

  • Regular Member
  • Hero Member
  • *
  • Posts: 524
    • View Profile
Re: Drawing with Go
« Reply #3 on: 10. February 2019, 17:36:33 »
pih...
just because one stupid letter E..... ;D
who care about such a freak like you ..better put your dick into
your energy drink can ...then you will pick up whole wisdom of the world. :P

Tomaaz

  • Sr. Member
  • ****
  • Posts: 340
    • View Profile
Re: Drawing with Go
« Reply #4 on: 10. February 2019, 18:11:47 »
I love when you lose it. I just wish I could see a video of you shouting this stuff at me.  ;D

Aurel

  • Regular Member
  • Hero Member
  • *
  • Posts: 524
    • View Profile
Re: Drawing with Go
« Reply #5 on: 10. February 2019, 18:36:20 »
Quote
I love when you lose it. I just wish I could see a video of you shouting this stuff at me

You love when i lose ... :o and what you have from this ..nothing.
In fact in don't see in what you win?
ahhh probably because your smart-ass attitude you think you win...
geeee what a schmack.... ::)

Quote
I just wish I could see a video of you shouting this stuff a
shouting on you ...no ....i really don't get it what kind of poor moron you are...?
CAN YOU EXPLAIN ?

 ;D
« Last Edit: 10. February 2019, 18:38:01 by Aurel »

Tomaaz

  • Sr. Member
  • ****
  • Posts: 340
    • View Profile
Re: Drawing with Go
« Reply #6 on: 10. February 2019, 19:25:59 »
Not when you lose, but when you lose it. Google the difference.