Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
Add pansexual pride flag (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
NamedKitten authored and SapphicCode committed Oct 7, 2019
1 parent 643c8b0 commit 4f62761
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions pride/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ package pride
var Flags = map[string]func(){
"trans": PrintTransPrideFlag,
"genderqueer": PrintGenderqueerPrideFlag,
"pansexual": PrintPansexualPrideFlag,
}
32 changes: 32 additions & 0 deletions pride/pansexual.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package pride

import (
"fmt"
)

// PrintPansexualPrideFlag prints a pansexual pride flag in your terminal.
func PrintPansexualPrideFlag() {
_, height := windowSize()
segmentHeight := height / 3
for segment := 1; segment <= 3; segment++ {
line := "\n"
for i := 0; i < segmentHeight-1; i++ {
line += "\n"
}
if segment == 3 {
line += "\n"
}

var colorCode string
if segment == 1 {
colorCode = "197"
}
if segment == 2 {
colorCode = "220"
}
if segment == 3 {
colorCode = "038"
}
fmt.Printf("\x1B[48;5;%sm%s\x1B[0m", colorCode, line)
}
}

0 comments on commit 4f62761

Please sign in to comment.