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

Commit

Permalink
Add a non-binary pride flag (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
NamedKitten authored and SapphicCode committed Oct 7, 2019
1 parent 4f62761 commit f48af70
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pride/enby.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package pride

import (
"fmt"
)

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

var colorCode string
if segment == 1 {
colorCode = "011"
}
if segment == 2 {
colorCode = "015"
}
if segment == 3 {
colorCode = "054"
}
if segment == 4 {
colorCode = "000"
}
fmt.Printf("\x1B[48;5;%sm%s\x1B[0m", colorCode, line)
}
}
1 change: 1 addition & 0 deletions pride/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ package pride
var Flags = map[string]func(){
"trans": PrintTransPrideFlag,
"genderqueer": PrintGenderqueerPrideFlag,
"nonbinary": PrintNonbinaryPrideFlag,
"pansexual": PrintPansexualPrideFlag,
}

0 comments on commit f48af70

Please sign in to comment.