Skip to content

Commit

Permalink
re-generated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
drkameleon committed May 13, 2021
1 parent 94b89d9 commit 93d13f9
Show file tree
Hide file tree
Showing 24 changed files with 187 additions and 31 deletions.
12 changes: 10 additions & 2 deletions docs/website/data/libraryFunctions.art
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@
"reflection/benchmark"
"binary?"
"reflection/binary-"
"blend"
"colors/blend"
"block?"
"reflection/block-"
"boolean?"
Expand Down Expand Up @@ -122,7 +124,7 @@
"cursor"
"io/cursor"
"darken"
"color/darken"
"colors/darken"
"database?"
"reflection/database-"
"date?"
Expand All @@ -135,6 +137,8 @@
"converters/define"
"delete"
"files/delete"
"desaturate"
"colors/desaturate"
"deviation"
"statistics/deviation"
"dictionary"
Expand Down Expand Up @@ -259,6 +263,8 @@
"reflection/integer-"
"intersection"
"sets/intersection"
"invert"
"colors/invert"
"is?"
"reflection/is-"
"join"
Expand All @@ -284,7 +290,7 @@
"levenshtein"
"strings/levenshtein"
"lighten"
"color/lighten"
"colors/lighten"
"list"
"paths/list"
"literal?"
Expand Down Expand Up @@ -427,6 +433,8 @@
"numbers/round"
"sample"
"collections/sample"
"saturate"
"colors/saturate"
"script"
"system/script"
"sec"
Expand Down
2 changes: 1 addition & 1 deletion docs/website/data/libraryModules.art
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Arithmetic"
"Binary"
"Collections"
"Color"
"Colors"
"Comparison"
"Converters"
"Core"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ related: [
"Binary/and"
"Collections/extend"
"Collections/remove"
"Databases/open"
"Colors/blend"
]
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ arguments: #[
]
related: [
"Collections/append"
"Colors/blend"
"Numbers/even?"
"Binary/and"
"Binary/nand"
]
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ arguments: #[
related: [
"Iterators/fold"
"Collections/last"
"Color/darken"
"Color/lighten"
"Colors/darken"
"Colors/lighten"
]
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ arguments: #[
]
]
related: [
"Reflection/inspect"
"Colors/invert"
"Reflection/inspect"
"Strings/indent"
"Collections/index"
"Collections/set"
]
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ arguments: #[
]
]
related: [
"Io/terminal"
"Colors/desaturate"
"Colors/saturate"
"Io/terminal"
"Strings/truncate"
"Collections/empty"
"Collections/empty?"
]
30 changes: 30 additions & 0 deletions docs/website/pages/documentation/library/colors/blend.art
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "blend"
type: :function
module: "Colors"
returns: [
:color
]
description: "blend given colors and get result"
example: ""
attributes: #[
balance: #[
types: [
:floating
]
description: "use different mix of color (0.0-1.0, default:0.5)"
]
]
arguments: #[
colorA: [
:color
]
colorB: [
:color
]
]
related: [
"Binary/and"
"Binary/nand"
"Collections/append"
"Collections/extend"
]
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: "darken"
type: :function
module: "Color"
module: "Colors"
returns: [
:color
]
description: "darken color by given percentage (0.0-0.1)"
description: "darken color by given percentage (0.0-1.0)"
example: ""
attributes: #[
]
Expand All @@ -17,8 +17,8 @@ arguments: #[
]
]
related: [
"Color/lighten"
"Colors/lighten"
"Colors/saturate"
"Colors/desaturate"
"Collections/take"
"Reflection/date?"
"Arithmetic/dec"
]
24 changes: 24 additions & 0 deletions docs/website/pages/documentation/library/colors/desaturate.art
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "desaturate"
type: :function
module: "Colors"
returns: [
:color
]
description: "desaturate color by given percentage (0.0-1.0)"
example: ""
attributes: #[
]
arguments: #[
color: [
:color
]
percent: [
:floating
]
]
related: [
"Colors/saturate"
"Colors/darken"
"Colors/lighten"
"Collections/permutate"
]
21 changes: 21 additions & 0 deletions docs/website/pages/documentation/library/colors/invert.art
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: "invert"
type: :function
module: "Colors"
returns: [
:color
]
description: "get complement for given color"
example: ""
attributes: #[
]
arguments: #[
color: [
:color
]
]
related: [
"Collections/insert"
"Strings/indent"
"Collections/index"
"Io/input"
]
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: "lighten"
type: :function
module: "Color"
module: "Colors"
returns: [
:color
]
description: "lighten color by given percentage (0.0-0.1)"
description: "lighten color by given percentage (0.0-1.0)"
example: ""
attributes: #[
]
Expand All @@ -17,8 +17,8 @@ arguments: #[
]
]
related: [
"Color/darken"
"Colors/darken"
"Colors/saturate"
"Colors/desaturate"
"Collections/flatten"
"Iterators/filter"
"Paths/list"
]
24 changes: 24 additions & 0 deletions docs/website/pages/documentation/library/colors/saturate.art
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "saturate"
type: :function
module: "Colors"
returns: [
:color
]
description: "saturate color by given percentage (0.0-1.0)"
example: ""
attributes: #[
]
arguments: #[
color: [
:color
]
percent: [
:floating
]
]
related: [
"Colors/desaturate"
"Colors/darken"
"Colors/lighten"
"Statistics/average"
]
6 changes: 6 additions & 0 deletions docs/website/pages/documentation/library/converters/to.art
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ attributes: #[
]
description: "use given format (for dates)"
]
hsl: #[
types: [
:boolean
]
description: "convert HSL block to color"
]
]
arguments: #[
type: [
Expand Down
2 changes: 1 addition & 1 deletion docs/website/pages/documentation/library/core/break.art
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ arguments: #[
]
related: [
"Files/read"
"Colors/blend"
"Converters/array"
"Io/clear"
"Arithmetic/dec"
]
2 changes: 1 addition & 1 deletion docs/website/pages/documentation/library/core/when-.art
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ related: [
"Numbers/even?"
"Collections/in?"
"Collections/key?"
"Core/while"
"Colors/blend"
]
4 changes: 2 additions & 2 deletions docs/website/pages/documentation/library/io/clear.art
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ attributes: #[
arguments: #[
]
related: [
"Core/break"
"Colors/blend"
"Core/break"
"Core/let"
"Core/var"
"Databases/close"
]
2 changes: 1 addition & 1 deletion docs/website/pages/documentation/library/numbers/round.art
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ related: [
"Arithmetic/mod"
"Binary/and"
"Binary/nand"
"Files/read"
"Colors/blend"
]
43 changes: 43 additions & 0 deletions docs/website/pages/documentation/library/paths/extract.art
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,53 @@ attributes: #[
]
description: "get anchor field from URL"
]
red: #[
types: [
:boolean
]
description: "get red component from color"
]
green: #[
types: [
:boolean
]
description: "get green component from color"
]
blue: #[
types: [
:boolean
]
description: "get blue component from color"
]
hsl: #[
types: [
:boolean
]
description: "get HSL representation from color"
]
hue: #[
types: [
:boolean
]
description: "get hue component from color"
]
saturation: #[
types: [
:boolean
]
description: "get saturation component from color"
]
luminosity: #[
types: [
:boolean
]
description: "get luminosity component from color"
]
]
arguments: #[
path: [
:string
:color
]
]
related: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ arguments: #[
]
related: [
"Collections/insert"
"Colors/invert"
"Io/input"
"Strings/indent"
"Arithmetic/inc"
]
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ arguments: #[
related: [
"Statistics/median"
"Collections/reverse"
"Colors/saturate"
"Converters/array"
"Files/rename"
]
Loading

0 comments on commit 93d13f9

Please sign in to comment.