Skip to content

Commit

Permalink
add fade value
Browse files Browse the repository at this point in the history
  • Loading branch information
nainghtetlinn committed Nov 25, 2023
1 parent dc57d73 commit 35d6b7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export type OptionsType = {
wordCounts?: { min: number; max: number }
rainSpeed?: { min: number; max: number }
switchInterval?: { min: number; max: number }
fade?: number
}

export type AppOptionsType = {
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function createAppOptions(options: OptionsType): AppOptionsType {
.rgb()
.string(),
bgFade: new Color(options.bgColor || defaultOptions.bgColor)
.alpha(0.2)
.alpha(options.fade || 0.2)
.rgb()
.string(),
firstWordColor: new Color(
Expand Down

0 comments on commit 35d6b7a

Please sign in to comment.