Skip to content

Commit

Permalink
docs(example): add attribution to Orhun Parmaksız in space example
Browse files Browse the repository at this point in the history
aymanbagabas committed Jan 13, 2025

Verified

This commit was signed with the committer’s verified signature.
aymanbagabas Ayman Bagabas
1 parent ff9ca3d commit a0bf376
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/space/main.go
Original file line number Diff line number Diff line change
@@ -12,6 +12,11 @@ import (
"github.com/charmbracelet/lipgloss/v2"
)

// An example to show the FPS count of a moving space-like background.
//
// This was ported from the talented Orhun Parmaksız (@orhun)'s space example
// from his blog post "Why stdout is faster than stderr?".

type fps struct {
frameCount int
lastInstant time.Time

0 comments on commit a0bf376

Please sign in to comment.