RGBASeekBars - Color SeekBar

SeekBar with RGBA color gradients.

Functions


  1. InitializeSeekBars(AndroidViewComponent arrangement)
    • Initializes the SeekBars within a specific arrangement.

  1. GetCurrentColor()
    • Returns the current color.

component_method (23)

  1. ResetColor()
    • Resets to the default color (black).

  1. GetRedComponent()
    • Returns the red component of the current color.

  1. GetGreenComponent()
    • Returns the green component of the current color.

  1. GetBlueComponent()
    • Returns the blue component of the current color.

  1. GetAlphaComponent()
    • Returns the alpha component of the current color.

  1. SetInitialColor(int color)
    • Sets the initial color.

  1. SaveCurrentColor()
    • Saves the current color to the saved colors list.

  1. GetSavedColor(int index)
    • Returns the saved color at the specified index.

  1. SwapRedAndBlue()
    • Swaps the red and blue components of the current color.

  1. SetBackgroundColor(AndroidViewComponent component)
    • Sets the background color of a specific component.

component_method (29)

  1. SetTextColor(AndroidViewComponent component)
    • Sets the text color of a specific component.

  1. UndoColorChange()
    • Undoes the last color change.

  1. RedoColorChange()
    • Redoes the last undone color change.

  1. SaveColorPalette()
    • Saves the current color palette.

  1. LoadColorPalette(String filePath)
    • Loads a color palette from a CSV file.

  1. ClearSavedColors()
    • Clears the saved colors list.

  1. GetSavedColorsCount()
    • Returns the number of saved colors.

  1. SetSeekBarVisibility(boolean visible)
    • Shows or hides all SeekBars.

  1. AdjustBrightness(int percent)
    • Adjusts the brightness of the current color by a percentage.

  1. AdjustSaturation(int percent)
    • Adjusts the saturation of the current color by a percentage.

  1. RemoveSavedColor(int index)
    • Removes a saved color from the list by index.

  1. ExportColorPalette(String fileName)
    • Exports the saved color palette as a CSV file.

  1. ShareColorPalette()
    • Shares the saved color palette as text.

  1. GetCurrentColorHex()
    • Returns the current color as a hexadecimal string.

  1. GetCurrentColorCMYK()
    • Returns the current color as a CMYK string.

  1. GetCurrentColorHSV()
    • Returns the current color as an HSV string.

  1. GetCurrentColorHSL()
    • Returns the current color as an HSL string.

Events


  1. ColorChanged(int color)
    • Triggered when the color is changed.
    • Parameter: color (int) - The new color.

  1. LoadPaletteFailed(String errorMessage)
    • Triggered when loading the color palette fails.
    • Parameter: errorMessage (String) - The error message.

  1. ExportSuccess(String filePath)
    • Triggered when the color palette is successfully exported.
    • Parameter: filePath (String) - The path of the exported file.

  1. ExportFailure(String errorMessage)
    • Triggered when there is an error exporting the color palette.
    • Parameter: errorMessage (String) - The error message.

Example Video:

aia project:
RGBASeekbarTest.aia (65.5 KB)

Extension:
JoeDevRGBASeekBars.aix (18.8 KB)


Thanks.

6 Likes

Nice work :clap:

Thank you so much JEWEL

1 Like