PINE LIBRARY
업데이트됨 ColorScheme

Library "ColorScheme"
A color scheme generator.
init() Initiate the array data registry that will hold the color profile. Returns: tuple with 2 arrays (string array, color array)
check_registry_integrity(key_registry, color_registry) Checks the integrity of the registers.
Parameters:
Returns: void.
add(key_registry, color_registry, key, value) Add new (key, color) entry to the registry.
Parameters:
Returns: void.
get_color(key_registry, color_registry, key) Get a (key, color) entry from the registry.
Parameters:
Returns: void.
edit_key(key_registry, color_registry, key, new_key) Edit a (key, color) entry in the registry.
Parameters:
Returns: void.
edit_color(key_registry, color_registry, key, new_value) Edit a (key, color) entry in the registry.
Parameters:
Returns: void.
delete(key_registry, color_registry, key) Delete a (key, color) entry from the registry.
Parameters:
Returns: void.
delete_all(key_registry, color_registry) Delete all (key, color) entrys from the registry.
Parameters:
Returns: void.
model(index) Enumerate models available to profile colors.
Parameters:
Returns: string.
generate_scheme(key_registry, color_registry, primary, model) Generate a multi color scheme.
Parameters:
Returns: void.
A color scheme generator.
init() Initiate the array data registry that will hold the color profile. Returns: tuple with 2 arrays (string array, color array)
check_registry_integrity(key_registry, color_registry) Checks the integrity of the registers.
Parameters:
- key_registry: string array, key data holder array.
- color_registry: color array, color value data holder array.
Returns: void.
add(key_registry, color_registry, key, value) Add new (key, color) entry to the registry.
Parameters:
- key_registry: string array, key data holder array.
- color_registry: color array, color value data array.
- key: string, the unique key to reference the value.
- value: color, the color value of the specified key.
Returns: void.
get_color(key_registry, color_registry, key) Get a (key, color) entry from the registry.
Parameters:
- key_registry: string array, key data holder array.
- color_registry: color array, color value data array.
- key: string, the unique key to reference the value.
Returns: void.
edit_key(key_registry, color_registry, key, new_key) Edit a (key, color) entry in the registry.
Parameters:
- key_registry: string array, key data holder array.
- color_registry: color array, color value data array.
- key: string, the unique key to reference the value.
- new_key: string, the unique key to reference the value.
Returns: void.
edit_color(key_registry, color_registry, key, new_value) Edit a (key, color) entry in the registry.
Parameters:
- key_registry: string array, key data holder array.
- color_registry: color array, color value data array.
- key: string, the unique key to reference the value.
- new_value: color, the color value of the specified key.
Returns: void.
delete(key_registry, color_registry, key) Delete a (key, color) entry from the registry.
Parameters:
- key_registry: string array, key data holder array.
- color_registry: color array, color value data array.
- key: string, the unique key to reference the value.
Returns: void.
delete_all(key_registry, color_registry) Delete all (key, color) entrys from the registry.
Parameters:
- key_registry: string array, key data holder array.
- color_registry: color array, color value data array.
Returns: void.
model(index) Enumerate models available to profile colors.
Parameters:
- index: int, index of model. (1:'monochromatic', 2:'analog', 3:'triadic', 4:'tetradic', 5:'square', anything else:'monochromatic')
Returns: string.
generate_scheme(key_registry, color_registry, primary, model) Generate a multi color scheme.
Parameters:
- key_registry: string array, key data holder array.
- color_registry: color array, color value data array.
- primary: color, the origin color to base the profile.
- model: string, default='monochromatic', options=('monochromatic', 'triadic near', 'triadic far', 'tetradic')
Returns: void.
릴리즈 노트
v2 added some utilities and type support.Added:
model_index(model)
Enumerate a model name to a index number.
Parameters:
model (string): `string`: Name of the model
Returns: - `int`: Index of color model.
---
Usage:
- `model_index("monochromatic")`
new()
Generate and initiate the properties of a new theme object.
Returns: - New theme object.
---
Usage:
- `theme = new()`
Theme
Theme object holding a dictionay alike structure.
Fields:
keys (string[]): List of named keys.
colors (color[]): List of colors.
릴리즈 노트
v3Updated:
method generate_scheme(this, primary, model)
Generate a multi color scheme.
Namespace types: Theme
Parameters:
this (Theme): `Theme` : Theme object.
primary (color): `color` : Origin color to base the profile.
model (string): `string`: Color model selection, default='monochromatic', options=('monochromatic', 'triadic near', 'triadic far', 'tetradic')
Returns: - `this`: Self, Theme object.
---
Usage:
- `theme = Theme.new().generate_scheme(#e3e3e3, "monochromatic")`
Theme
Theme object holding a dictionary alike structure.
Fields:
keys (string[]): List of named keys.
colors (color[]): List of colors.
파인 라이브러리
트레이딩뷰의 진정한 정신에 따라, 작성자는 이 파인 코드를 오픈소스 라이브러리로 게시하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 경의를 표합니다! 이 라이브러리는 개인적으로 사용하거나 다른 오픈소스 게시물에서 사용할 수 있지만, 이 코드의 게시물 내 재사용은 하우스 룰에 따라 규제됩니다.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
파인 라이브러리
트레이딩뷰의 진정한 정신에 따라, 작성자는 이 파인 코드를 오픈소스 라이브러리로 게시하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 경의를 표합니다! 이 라이브러리는 개인적으로 사용하거나 다른 오픈소스 게시물에서 사용할 수 있지만, 이 코드의 게시물 내 재사용은 하우스 룰에 따라 규제됩니다.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.