YAPC::EU 2018 Glasgow Update!

This commit is contained in:
Ingy döt Net 2018-08-17 15:15:24 +01:00
parent 22f33d4004
commit 4e2d22a71d
1170 changed files with 15042 additions and 3047 deletions

View file

@ -0,0 +1,36 @@
' version 13-07-2018
' compile with: fbc -s console
' or: fbc -s gui
' hit any to key to stop program
Randomize Timer
Screen 13
If ScreenPtr = 0 Then
Print "Error setting video mode!"
End
End If
Palette 0, 0 ' black
Palette 1, RGB(255, 255, 255) ' white
Dim As UInteger c, x, y, Col
Dim As Double fps, t = Timer
' empty keyboard buffer
While InKey <> "" : Wend
While InKey = ""
For x = 0 To 319
For y = 0 To 199
' color is as integer, a float gets rounded off by FreeBASIC
PSet(x, y), Rnd
Next
Next
c += 1
fps = c / (Timer - t)
WindowTitle "fps = " + Str(fps)
Wend