From bf81230ddc01598e25fe8512f4d4b54872a758f4 Mon Sep 17 00:00:00 2001 From: slaviboy Date: Fri, 10 Apr 2020 22:44:15 +0300 Subject: [PATCH] Initial commit --- .gitignore | 14 + .idea/codeStyles/Project.xml | 123 ++ .idea/codeStyles/codeStyleConfig.xml | 5 + .idea/dictionaries/Slaviboy.xml | 11 + .idea/gradle.xml | 22 + .idea/jarRepositories.xml | 25 + .idea/misc.xml | 9 + .idea/runConfigurations.xml | 12 + app/.gitignore | 1 + app/build.gradle | 40 + app/proguard-rules.pro | 21 + .../ExampleInstrumentedTest.kt | 24 + app/src/main/AndroidManifest.xml | 21 + .../colorpickerkotlinexample/MainActivity.kt | 85 + .../pickers/CircularHSV.kt | 24 + .../pickers/RectangularHSL.kt | 29 + .../pickers/RectangularHSV.kt | 25 + .../drawable-v24/ic_launcher_foreground.xml | 30 + .../res/drawable/ic_launcher_background.xml | 170 ++ app/src/main/res/layout/activity_main.xml | 37 + .../layout/color_picker_hsl_rectangular.xml | 146 ++ .../res/layout/color_picker_hsv_circular.xml | 85 + .../layout/color_picker_hsv_rectangular.xml | 85 + .../res/mipmap-anydpi-v26/ic_launcher.xml | 5 + .../mipmap-anydpi-v26/ic_launcher_round.xml | 5 + app/src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3593 bytes .../res/mipmap-hdpi/ic_launcher_round.png | Bin 0 -> 5339 bytes app/src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2636 bytes .../res/mipmap-mdpi/ic_launcher_round.png | Bin 0 -> 3388 bytes app/src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4926 bytes .../res/mipmap-xhdpi/ic_launcher_round.png | Bin 0 -> 7472 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 7909 bytes .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin 0 -> 11873 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 10652 bytes .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 0 -> 16570 bytes app/src/main/res/values/colors.xml | 6 + app/src/main/res/values/strings.xml | 3 + app/src/main/res/values/styles.xml | 10 + .../ExampleUnitTest.kt | 17 + build.gradle | 24 + colorpicker/.gitignore | 1 + colorpicker/build.gradle | 47 + colorpicker/consumer-rules.pro | 0 colorpicker/proguard-rules.pro | 21 + .../colorpicker/ExampleInstrumentedTest.kt | 26 + colorpicker/src/main/AndroidManifest.xml | 5 + .../com/slaviboy/colorpicker/ColorHolder.kt | 58 + .../com/slaviboy/colorpicker/CornerRadius.kt | 86 + .../java/com/slaviboy/colorpicker/Range.kt | 71 + .../java/com/slaviboy/colorpicker/Updater.kt | 1161 ++++++++++++ .../colorpicker/converter/ColorConverter.kt | 1581 +++++++++++++++++ .../com/slaviboy/colorpicker/models/CMYK.kt | 168 ++ .../com/slaviboy/colorpicker/models/HEX.kt | 72 + .../com/slaviboy/colorpicker/models/HSL.kt | 147 ++ .../com/slaviboy/colorpicker/models/HSV.kt | 143 ++ .../com/slaviboy/colorpicker/models/HWB.kt | 143 ++ .../com/slaviboy/colorpicker/models/RGBA.kt | 181 ++ .../colorpicker/pickers/ColorPicker.kt | 93 + .../com/slaviboy/colorpicker/window/Base.kt | 388 ++++ .../slaviboy/colorpicker/window/Circular.kt | 220 +++ .../colorpicker/window/Rectangular.kt | 177 ++ .../com/slaviboy/colorpicker/window/Slider.kt | 173 ++ .../windows/circular/CircularHS.kt | 188 ++ .../windows/rectangular/RectangularSL.kt | 162 ++ .../windows/rectangular/RectangularSV.kt | 151 ++ .../colorpicker/windows/slider/SliderA.kt | 178 ++ .../colorpicker/windows/slider/SliderH.kt | 100 ++ .../colorpicker/windows/slider/SliderV.kt | 96 + colorpicker/src/main/res/values/styles.xml | 49 + .../slaviboy/colorpicker/ExampleUnitTest.kt | 80 + gradle.properties | 21 + gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 54329 bytes gradle/wrapper/gradle-wrapper.properties | 6 + gradlew | 172 ++ gradlew.bat | 84 + settings.gradle | 3 + 76 files changed, 7366 insertions(+) create mode 100644 .gitignore create mode 100644 .idea/codeStyles/Project.xml create mode 100644 .idea/codeStyles/codeStyleConfig.xml create mode 100644 .idea/dictionaries/Slaviboy.xml create mode 100644 .idea/gradle.xml create mode 100644 .idea/jarRepositories.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/runConfigurations.xml create mode 100644 app/.gitignore create mode 100644 app/build.gradle create mode 100644 app/proguard-rules.pro create mode 100644 app/src/androidTest/java/com/slaviboy/colorpickerkotlinexample/ExampleInstrumentedTest.kt create mode 100644 app/src/main/AndroidManifest.xml create mode 100644 app/src/main/java/com/slaviboy/colorpickerkotlinexample/MainActivity.kt create mode 100644 app/src/main/java/com/slaviboy/colorpickerkotlinexample/pickers/CircularHSV.kt create mode 100644 app/src/main/java/com/slaviboy/colorpickerkotlinexample/pickers/RectangularHSL.kt create mode 100644 app/src/main/java/com/slaviboy/colorpickerkotlinexample/pickers/RectangularHSV.kt create mode 100644 app/src/main/res/drawable-v24/ic_launcher_foreground.xml create mode 100644 app/src/main/res/drawable/ic_launcher_background.xml create mode 100644 app/src/main/res/layout/activity_main.xml create mode 100644 app/src/main/res/layout/color_picker_hsl_rectangular.xml create mode 100644 app/src/main/res/layout/color_picker_hsv_circular.xml create mode 100644 app/src/main/res/layout/color_picker_hsv_rectangular.xml create mode 100644 app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml create mode 100644 app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml create mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png create mode 100644 app/src/main/res/values/colors.xml create mode 100644 app/src/main/res/values/strings.xml create mode 100644 app/src/main/res/values/styles.xml create mode 100644 app/src/test/java/com/slaviboy/colorpickerkotlinexample/ExampleUnitTest.kt create mode 100644 build.gradle create mode 100644 colorpicker/.gitignore create mode 100644 colorpicker/build.gradle create mode 100644 colorpicker/consumer-rules.pro create mode 100644 colorpicker/proguard-rules.pro create mode 100644 colorpicker/src/androidTest/java/com/slaviboy/colorpicker/ExampleInstrumentedTest.kt create mode 100644 colorpicker/src/main/AndroidManifest.xml create mode 100644 colorpicker/src/main/java/com/slaviboy/colorpicker/ColorHolder.kt create mode 100644 colorpicker/src/main/java/com/slaviboy/colorpicker/CornerRadius.kt create mode 100644 colorpicker/src/main/java/com/slaviboy/colorpicker/Range.kt create mode 100644 colorpicker/src/main/java/com/slaviboy/colorpicker/Updater.kt create mode 100644 colorpicker/src/main/java/com/slaviboy/colorpicker/converter/ColorConverter.kt create mode 100644 colorpicker/src/main/java/com/slaviboy/colorpicker/models/CMYK.kt create mode 100644 colorpicker/src/main/java/com/slaviboy/colorpicker/models/HEX.kt create mode 100644 colorpicker/src/main/java/com/slaviboy/colorpicker/models/HSL.kt create mode 100644 colorpicker/src/main/java/com/slaviboy/colorpicker/models/HSV.kt create mode 100644 colorpicker/src/main/java/com/slaviboy/colorpicker/models/HWB.kt create mode 100644 colorpicker/src/main/java/com/slaviboy/colorpicker/models/RGBA.kt create mode 100644 colorpicker/src/main/java/com/slaviboy/colorpicker/pickers/ColorPicker.kt create mode 100644 colorpicker/src/main/java/com/slaviboy/colorpicker/window/Base.kt create mode 100644 colorpicker/src/main/java/com/slaviboy/colorpicker/window/Circular.kt create mode 100644 colorpicker/src/main/java/com/slaviboy/colorpicker/window/Rectangular.kt create mode 100644 colorpicker/src/main/java/com/slaviboy/colorpicker/window/Slider.kt create mode 100644 colorpicker/src/main/java/com/slaviboy/colorpicker/windows/circular/CircularHS.kt create mode 100644 colorpicker/src/main/java/com/slaviboy/colorpicker/windows/rectangular/RectangularSL.kt create mode 100644 colorpicker/src/main/java/com/slaviboy/colorpicker/windows/rectangular/RectangularSV.kt create mode 100644 colorpicker/src/main/java/com/slaviboy/colorpicker/windows/slider/SliderA.kt create mode 100644 colorpicker/src/main/java/com/slaviboy/colorpicker/windows/slider/SliderH.kt create mode 100644 colorpicker/src/main/java/com/slaviboy/colorpicker/windows/slider/SliderV.kt create mode 100644 colorpicker/src/main/res/values/styles.xml create mode 100644 colorpicker/src/test/java/com/slaviboy/colorpicker/ExampleUnitTest.kt create mode 100644 gradle.properties create mode 100644 gradle/wrapper/gradle-wrapper.jar create mode 100644 gradle/wrapper/gradle-wrapper.properties create mode 100644 gradlew create mode 100644 gradlew.bat create mode 100644 settings.gradle diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..603b140 --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +*.iml +.gradle +/local.properties +/.idea/caches +/.idea/libraries +/.idea/modules.xml +/.idea/workspace.xml +/.idea/navEditor.xml +/.idea/assetWizardSettings.xml +.DS_Store +/build +/captures +.externalNativeBuild +.cxx diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..a66e515 --- /dev/null +++ b/.idea/codeStyles/Project.xml @@ -0,0 +1,123 @@ + + + + \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..a7414c5 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/.idea/dictionaries/Slaviboy.xml b/.idea/dictionaries/Slaviboy.xml new file mode 100644 index 0000000..50ddef3 --- /dev/null +++ b/.idea/dictionaries/Slaviboy.xml @@ -0,0 +1,11 @@ + + + + affero + cmyk + cmyka + georgiev + stanislav + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml new file mode 100644 index 0000000..ebf1e89 --- /dev/null +++ b/.idea/gradle.xml @@ -0,0 +1,22 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 0000000..a5f05cd --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..37a7509 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,9 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml new file mode 100644 index 0000000..7f68460 --- /dev/null +++ b/.idea/runConfigurations.xml @@ -0,0 +1,12 @@ + + + + + + \ No newline at end of file diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000..42afabf --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle new file mode 100644 index 0000000..3668540 --- /dev/null +++ b/app/build.gradle @@ -0,0 +1,40 @@ +apply plugin: 'com.android.application' +apply plugin: 'kotlin-android' +apply plugin: 'kotlin-android-extensions' + +android { + compileSdkVersion 29 + buildToolsVersion "29.0.3" + + defaultConfig { + applicationId "com.slaviboy.colorpickerkotlinexample" + minSdkVersion 21 + targetSdkVersion 29 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } +} + +dependencies { + implementation fileTree(dir: "libs", include: ["*.jar"]) + implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" + implementation 'androidx.core:core-ktx:1.2.0' + implementation 'androidx.appcompat:appcompat:1.1.0' + implementation 'androidx.constraintlayout:constraintlayout:1.1.3' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' + + testImplementation "org.junit.jupiter:junit-jupiter-api:5.3.2" + testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.3.2" + testImplementation "org.junit.jupiter:junit-jupiter-params:5.3.2" + + implementation project(":colorpicker") +} \ No newline at end of file diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000..481bb43 --- /dev/null +++ b/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/app/src/androidTest/java/com/slaviboy/colorpickerkotlinexample/ExampleInstrumentedTest.kt b/app/src/androidTest/java/com/slaviboy/colorpickerkotlinexample/ExampleInstrumentedTest.kt new file mode 100644 index 0000000..10d8d69 --- /dev/null +++ b/app/src/androidTest/java/com/slaviboy/colorpickerkotlinexample/ExampleInstrumentedTest.kt @@ -0,0 +1,24 @@ +package com.slaviboy.colorpickerkotlinexample + +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.runner.AndroidJUnit4 + +import org.junit.Test +import org.junit.runner.RunWith + +import org.junit.Assert.* + +/** + * Instrumented test, which will execute on an Android device. + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +@RunWith(AndroidJUnit4::class) +class ExampleInstrumentedTest { + @Test + fun useAppContext() { + // Context of the app under test. + val appContext = InstrumentationRegistry.getInstrumentation().targetContext + assertEquals("com.slaviboy.colorpickerkotlinexample", appContext.packageName) + } +} \ No newline at end of file diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..3878a3c --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/com/slaviboy/colorpickerkotlinexample/MainActivity.kt b/app/src/main/java/com/slaviboy/colorpickerkotlinexample/MainActivity.kt new file mode 100644 index 0000000..1f0e5f8 --- /dev/null +++ b/app/src/main/java/com/slaviboy/colorpickerkotlinexample/MainActivity.kt @@ -0,0 +1,85 @@ +package com.slaviboy.colorpickerkotlinexample + +import android.app.Activity +import android.os.Bundle +import android.view.View +import android.widget.TextView +import androidx.appcompat.app.AppCompatActivity +import com.slaviboy.colorpicker.Updater +import com.slaviboy.colorpicker.Updater.OnUpdateListener +import com.slaviboy.colorpicker.converter.ColorConverter +import com.slaviboy.colorpicker.window.Base +import com.slaviboy.colorpickerkotlinexample.pickers.CircularHSV +import com.slaviboy.colorpickerkotlinexample.pickers.RectangularHSL +import com.slaviboy.colorpickerkotlinexample.pickers.RectangularHSV + +class MainActivity : AppCompatActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + super.onCreate(savedInstanceState) + setContentView(R.layout.activity_main) + + initColorPickers() + } + + fun initColorPickers() { + + // get color picker views + val rectangularHSV: RectangularHSV = findViewById(R.id.picker1) + val rectangularHSL: RectangularHSL = findViewById(R.id.picker2) + val circularHSV: CircularHSV = findViewById(R.id.picker3) + + // create color convert, that will convert from one color model to another + val colorConverter = ColorConverter(160, 73, 184, 50) + + // create updater object, that will update all color window and text views + val updater = Updater(colorConverter) + + // attach updater to all color pickers + rectangularHSV.attach(updater) + rectangularHSL.attach(updater) + circularHSV.attach(updater) + + // attach listener to the updater + updater.setOnUpdateListener(object : OnUpdateListener { + override fun onTextViewUpdate(textView: TextView?) {} + override fun onColorWindowUpdate(colorWindow: Base?) {} + }) + } + + override fun onWindowFocusChanged(hasFocus: Boolean) { + super.onWindowFocusChanged(hasFocus) + if (hasFocus) { + hideSystemUI(this) + } + } + + /** + * Enables regular immersive mode. + * For "lean back" mode, remove SYSTEM_UI_FLAG_IMMERSIVE. + * Or for "sticky immersive," replace it with SYSTEM_UI_FLAG_IMMERSIVE_STICKY + */ + fun hideSystemUI(activity: Activity) { + + val decorView = activity.window.decorView + decorView.systemUiVisibility = + (View.SYSTEM_UI_FLAG_IMMERSIVE // Set the content to appear under the system bars so that the + // content doesn't resize when the system bars hide and show. + or View.SYSTEM_UI_FLAG_LAYOUT_STABLE + or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION + or View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN // Hide the nav bar and status bar + or View.SYSTEM_UI_FLAG_HIDE_NAVIGATION + or View.SYSTEM_UI_FLAG_FULLSCREEN) + } + + /** + * Shows the system bars by removing all the flags + * except for the ones that make the content appear under the system bars. + * @param activity + */ + fun showSystemUI(activity: Activity) { + val decorView = activity.window.decorView + decorView.systemUiVisibility = (View.SYSTEM_UI_FLAG_LAYOUT_STABLE + or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION + or View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN) + } +} diff --git a/app/src/main/java/com/slaviboy/colorpickerkotlinexample/pickers/CircularHSV.kt b/app/src/main/java/com/slaviboy/colorpickerkotlinexample/pickers/CircularHSV.kt new file mode 100644 index 0000000..f66e24f --- /dev/null +++ b/app/src/main/java/com/slaviboy/colorpickerkotlinexample/pickers/CircularHSV.kt @@ -0,0 +1,24 @@ +package com.slaviboy.colorpickerkotlinexample.pickers + +import android.content.Context +import android.util.AttributeSet +import com.slaviboy.colorpicker.pickers.ColorPicker +import com.slaviboy.colorpickerkotlinexample.R + +class CircularHSV : ColorPicker { + constructor(context: Context) : super(context) { + init(context) + } + + constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) { + init(context) + } + + constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr) { + init(context) + } + + private fun init(context: Context) { + setViews(context, R.layout.color_picker_hsv_circular) + } +} \ No newline at end of file diff --git a/app/src/main/java/com/slaviboy/colorpickerkotlinexample/pickers/RectangularHSL.kt b/app/src/main/java/com/slaviboy/colorpickerkotlinexample/pickers/RectangularHSL.kt new file mode 100644 index 0000000..c2d293c --- /dev/null +++ b/app/src/main/java/com/slaviboy/colorpickerkotlinexample/pickers/RectangularHSL.kt @@ -0,0 +1,29 @@ +package com.slaviboy.colorpickerkotlinexample.pickers + +import android.content.Context +import android.util.AttributeSet +import com.slaviboy.colorpicker.pickers.ColorPicker +import com.slaviboy.colorpickerkotlinexample.R + +class RectangularHSL : ColorPicker { + + constructor(context: Context) : super(context) { + init(context) + } + + constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) { + init(context) + } + + constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super( + context, + attrs, + defStyleAttr + ) { + init(context) + } + + private fun init(context: Context) { + setViews(context, R.layout.color_picker_hsl_rectangular) + } +} diff --git a/app/src/main/java/com/slaviboy/colorpickerkotlinexample/pickers/RectangularHSV.kt b/app/src/main/java/com/slaviboy/colorpickerkotlinexample/pickers/RectangularHSV.kt new file mode 100644 index 0000000..a8e4de9 --- /dev/null +++ b/app/src/main/java/com/slaviboy/colorpickerkotlinexample/pickers/RectangularHSV.kt @@ -0,0 +1,25 @@ +package com.slaviboy.colorpickerkotlinexample.pickers + +import android.content.Context +import android.util.AttributeSet +import com.slaviboy.colorpicker.pickers.ColorPicker +import com.slaviboy.colorpickerkotlinexample.R + + +class RectangularHSV : ColorPicker { + constructor(context: Context) : super(context) { + init(context) + } + + constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) { + init(context) + } + + constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr) { + init(context) + } + + private fun init(context: Context) { + setViews(context, R.layout.color_picker_hsv_rectangular) + } +} diff --git a/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml new file mode 100644 index 0000000..2b068d1 --- /dev/null +++ b/app/src/main/res/drawable-v24/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_launcher_background.xml b/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..07d5da9 --- /dev/null +++ b/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..f76b8d4 --- /dev/null +++ b/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,37 @@ + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/color_picker_hsl_rectangular.xml b/app/src/main/res/layout/color_picker_hsl_rectangular.xml new file mode 100644 index 0000000..cd0c7cf --- /dev/null +++ b/app/src/main/res/layout/color_picker_hsl_rectangular.xml @@ -0,0 +1,146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/color_picker_hsv_circular.xml b/app/src/main/res/layout/color_picker_hsv_circular.xml new file mode 100644 index 0000000..d490c38 --- /dev/null +++ b/app/src/main/res/layout/color_picker_hsv_circular.xml @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/color_picker_hsv_rectangular.xml b/app/src/main/res/layout/color_picker_hsv_rectangular.xml new file mode 100644 index 0000000..e107e7a --- /dev/null +++ b/app/src/main/res/layout/color_picker_hsv_rectangular.xml @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..eca70cf --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml new file mode 100644 index 0000000..eca70cf --- /dev/null +++ b/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..a571e60098c92c2baca8a5df62f2929cbff01b52 GIT binary patch literal 3593 zcmV+k4)*bhP){4Q1@|o^l5vR(0JRNCL<7M6}UD`@%^5zYjRJ-VNC3qn#9n=m>>ACRx!M zlW3!lO>#0MCAqh6PU7cMP#aQ`+zp##c~|0RJc4JAuaV=qZS|vg8XJ$1pYxc-u~Q5j z%Ya4ddEvZow!floOU_jrlE84*Kfv6!kMK^%#}A$Bjrna`@pk(TS$jA@P;|iPUR-x)_r4ELtL9aUonVhI31zFsJ96 z|5S{%9|FB-SsuD=#0u1WU!W6fcXF)#63D7tvwg%1l(}|SzXh_Z(5234`w*&@ctO>g z0Aug~xs*zAjCpNau(Ul@mR~?6dNGx9Ii5MbMvmvUxeqy>$Hrrn;v8G!g*o~UV4mr_ zyWaviS4O6Kb?ksg`)0wj?E@IYiw3az(r1w37|S|7!ODxfW%>6m?!@woyJUIh_!>E$ z+vYyxcpe*%QHt~E*etx=mI~XG8~QJhRar>tNMB;pPOKRfXjGt4fkp)y6=*~XIJC&C!aaha9k7~UP9;`q;1n9prU@a%Kg%gDW+xy9n`kiOj8WIs;+T>HrW znVTomw_2Yd%+r4at4zQC3*=Z4naYE7H*Dlv4=@IEtH_H;af}t@W7@mE$1xI#XM-`% z0le3-Q}*@D@ioThJ*cgm>kVSt+=txjd2BpJDbBrpqp-xV9X6Rm?1Mh~?li96xq(IP z+n(4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C zOB+u@xsG_9xP@3yLwmg%s#MkFt7;-CAxBZpA)JebBVkF?7I-#pgkwW2oEiyDaUzt} zk+4W#SNAW)n+lH6T5J8{bNxA9w|@PP^za&C{2LmVpz%AG?wzpT`>@HLcMqBD^G-9} zw>-__!0I%9ZnAe-_hZjZP4nNGYJ^AgtAO?>Uo^!N|Le+X|9-g?II=KWY+eRb@sf8iJh{v#I? zC%*LZ_}5?l+Z(UF^4EXA`uArU90SL~F%8D=fjmD#FnWw0qsQp+OdS6QzyUa+`7Q|u P00000NkvXXu0mjfP=x?Y literal 0 HcmV?d00001 diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/app/src/main/res/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 0000000000000000000000000000000000000000..61da551c5594a1f9d26193983d2cd69189014603 GIT binary patch literal 5339 zcmV<16eR13P)Id|UZ0P}EI-1@)I=X~DGdw1?T_xsK{_uTvL8wG`@xdHSL zi(gOK!kzzrvteWHAo2y%6u%c~FYnJ<{N`T=3@w2g$1Fm|W?3HbvT3QGvT;S=yZYsV z;Ux5#j?uZ!)cIU&lDjT_%=}{Tn4nc%?;kSe8vq_&%eGAXoY=)gfJHN3HRxZ>B(Z_MschsoM6AUCjPu&A03`pU`P@H& z-Hldo)2LhkOv(g+79zsWLK6F$uY^-8!$ow=uuO2jh2SxRvH;PPs;xr%>aSRNI!<*k zq54?efxFGi!}O%x@0qhGX;;FAnHp6DCoZk~0VY&zmNZ7(K!PJ_APP1drc`bP>0_;h z&Qm$bcWJm(}i`WLgp2 zB!Saf;inDgfjrc$$+TEt@mPcR1IsBF%ve$XBbby0fpkyuOahYhptv_F4TPl^cFuY% z?j|wKCAHsATwcEiKD!!=-Rcj*rL{kREWvXSay1%O)$IkoG9;U>9D$AX2iq+}=c!zK zW#~F|y=6S-m(=bSuBh7sp;w||;ji02=~j1>n56y%KZ-d`CU}*Vr4Kbx#$l%nQktf zay7|dPxqqVP#g?4KFBTpC4g94a7d(I?Axdoz50F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5fpnpX$g0FCE-89ZOVfAZnI9a;=H9Cq*8XF7s9^^-$ik;$F2}chtKl9d(jnWt8uNUOrJ|^*P%md4`9A>rM&7dk literal 0 HcmV?d00001 diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 0000000000000000000000000000000000000000..b216f2d313cc673d8b8c4da591c174ebed52795c GIT binary patch literal 11873 zcmV-nE}qeeP)>j(mnvHsDN`- z)Hpc!RY~GsN8h7-e0h){1pPyutMv!xY8((UfI!|$uSc$h*USS<3D;)>jA&v@d9D7< zHT4Fjd$j16?%uwChG$oUbXRr5R1Xal{*3>Jzr)wyYfFQK2UQ7FC4)xfYKnLmrg}CT zknXNCFx_kFjC)(1$K4CqX>!La*yN7qWum)8&xqa=WfSER0aGsfzxV7lce(d?1>-gF zT6j&oHvWy`fRfqbDIfBK#+iKbXJl;cI`!U`>C-Z|ZJwUFC3f0BTOUu$+zK-?w}I2c zzrg0fKA2AaJ?-8WL7Gm4*T8GxHSyZ?Z`|7&Lw??be;eC?ZBfFcU=N%Wj6KBvZxnGY zW*HlYn%(vHHM_eZiRe8Mh?L<^HSumhuE(R}*~|XjpKX@0A;&bsKgTTHKNn@1?*FMI ziC%~AA@9X&;I$@Z1myD9r^@@g@42>+Hj%br8^zmsYn%e-Q zJ01asY3^x8Y3?9WsvAD%7~OWuCO_vGrn==C-gf&mAk`CW|2+V+?`;R8+vIh(-2}>= zUIVX%*Tie%-@w1c|4r5gk!Tx9TaD8^OlXWGW|a;qty1|t3YvTjXbn@{9SzdluNiU^ z!ztArCo!8S#{egkOmsn+hyeP9f?z06_+GpQUdx07sE`aesB*~9*{p4%w$iqfK44!8 zx@6^ymlHUykB{k(yz9H$@Q(YNJZRid*#?}2DRtuI2~Z)RxHe|9HgoMKeZf9q-;^Mg zAvod#XmH1E(8!GSL2i$a!N?3>9-M6U>6U8ZD-xi55?LlU+9$4W>w}EbJq8yy4$6lF z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P{NF+*)u%aau!f4++P z?!4AP)CnETRq)m?R_BW^@s)du_o-^z|EMGsq5o{*a}_fvqV6DE*%tI>di|fTDWCX| z`_+7q7?x4@{q~2^*!9RR2biZSye6`b`sB(H^Zb6ovX9b@#D5(biRodW_yZvZ)tyqf z1amz!T**d2(NMWf>>o;VtSd2*^y1uA|H)@U3}I_*ncL-%gRjGvda-)jXDud|L2+jT zQbA#bKL@)*dt31@{%~_fx&6_tQ7;VV^JqRCA#iQppUi)0bkRz3Ay2#eWQvmCG#RY{ zYm$~BtG|)0h0`_~!?xoc!vOPSL?>-ebef z!i7>Tf;{u=k~zl)n!=Y5Fz!w)sV$;dzmme`^|TmmsbL%Zcu> zZ)H4KiklB{_n7KziFNl1|IClB zP%IL<_pAOBU`}y5T-Ikjvj@Y-r)eiG6>!pjOyTDVwH&{rSD75)Q2KZ-JFsaleEw3; z`cP1`%VM!O=86iIRCBvT6WU2sy9m$9AKyGQVhJnk;S--&}4|e zN literal 0 HcmV?d00001 diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..4faecfa --- /dev/null +++ b/app/src/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #6200EE + #3700B3 + #03DAC5 + \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..76c1bbe --- /dev/null +++ b/app/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + ColorPickerKotlin + \ No newline at end of file diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..fac9291 --- /dev/null +++ b/app/src/main/res/values/styles.xml @@ -0,0 +1,10 @@ + + + + + \ No newline at end of file diff --git a/app/src/test/java/com/slaviboy/colorpickerkotlinexample/ExampleUnitTest.kt b/app/src/test/java/com/slaviboy/colorpickerkotlinexample/ExampleUnitTest.kt new file mode 100644 index 0000000..e5cb625 --- /dev/null +++ b/app/src/test/java/com/slaviboy/colorpickerkotlinexample/ExampleUnitTest.kt @@ -0,0 +1,17 @@ +package com.slaviboy.colorpickerkotlinexample + +import org.junit.Test + +import org.junit.Assert.* + +/** + * Example local unit test, which will execute on the development machine (host). + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +class ExampleUnitTest { + @Test + fun addition_isCorrect() { + assertEquals(4, 2 + 2) + } +} \ No newline at end of file diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..353098c --- /dev/null +++ b/build.gradle @@ -0,0 +1,24 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. +buildscript { + ext.kotlin_version = "1.3.71" + repositories { + google() + jcenter() + } + dependencies { + classpath "com.android.tools.build:gradle:4.0.0-beta04" + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + classpath "de.mannodermaus.gradle.plugins:android-junit5:1.3.2.0" + } +} + +allprojects { + repositories { + google() + jcenter() + } +} + +task clean(type: Delete) { + delete rootProject.buildDir +} \ No newline at end of file diff --git a/colorpicker/.gitignore b/colorpicker/.gitignore new file mode 100644 index 0000000..42afabf --- /dev/null +++ b/colorpicker/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/colorpicker/build.gradle b/colorpicker/build.gradle new file mode 100644 index 0000000..035291a --- /dev/null +++ b/colorpicker/build.gradle @@ -0,0 +1,47 @@ +apply plugin: 'com.android.library' +apply plugin: 'kotlin-android' +apply plugin: 'kotlin-android-extensions' + +android { + compileSdkVersion 29 + buildToolsVersion "29.0.3" + + defaultConfig { + minSdkVersion 21 + targetSdkVersion 29 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" + consumerProguardFiles "consumer-rules.pro" + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' + } + } + + testOptions { + unitTests.all { + useJUnitPlatform() + unitTests.returnDefaultValues = true + } + } +} + +dependencies { + implementation fileTree(dir: "libs", include: ["*.jar"]) + implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" + implementation 'androidx.core:core-ktx:1.2.0' + implementation 'androidx.appcompat:appcompat:1.1.0' + implementation 'androidx.constraintlayout:constraintlayout:1.1.3' + androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' + + testImplementation "junit:junit:4.12" + testRuntimeOnly "org.junit.vintage:junit-vintage-engine:5.3.2" + testImplementation "org.junit.jupiter:junit-jupiter-api:5.3.2" + testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.3.2" + testImplementation "org.junit.jupiter:junit-jupiter-params:5.3.2" +} \ No newline at end of file diff --git a/colorpicker/consumer-rules.pro b/colorpicker/consumer-rules.pro new file mode 100644 index 0000000..e69de29 diff --git a/colorpicker/proguard-rules.pro b/colorpicker/proguard-rules.pro new file mode 100644 index 0000000..481bb43 --- /dev/null +++ b/colorpicker/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/colorpicker/src/androidTest/java/com/slaviboy/colorpicker/ExampleInstrumentedTest.kt b/colorpicker/src/androidTest/java/com/slaviboy/colorpicker/ExampleInstrumentedTest.kt new file mode 100644 index 0000000..7d9cdfd --- /dev/null +++ b/colorpicker/src/androidTest/java/com/slaviboy/colorpicker/ExampleInstrumentedTest.kt @@ -0,0 +1,26 @@ +package com.slaviboy.colorpicker + +import androidx.test.internal.runner.junit4.AndroidJUnit4Builder +import androidx.test.platform.app.InstrumentationRegistry +import androidx.test.runner.AndroidJUnit4 + +import org.junit.Test +import org.junit.runner.RunWith + +import org.junit.Assert.* +import org.junit.runners.JUnit4 + +/** + * Instrumented test, which will execute on an Android device. + * + * See [testing documentation](http://d.android.com/tools/testing). + */ +@RunWith(AndroidJUnit4::class) +class ExampleInstrumentedTest { + @Test + fun useAppContext() { + // Context of the app under test. + val appContext = InstrumentationRegistry.getInstrumentation().targetContext + assertEquals("com.slaviboy.colorpicker.test", appContext.packageName) + } +} \ No newline at end of file diff --git a/colorpicker/src/main/AndroidManifest.xml b/colorpicker/src/main/AndroidManifest.xml new file mode 100644 index 0000000..90a8697 --- /dev/null +++ b/colorpicker/src/main/AndroidManifest.xml @@ -0,0 +1,5 @@ + + + / + \ No newline at end of file diff --git a/colorpicker/src/main/java/com/slaviboy/colorpicker/ColorHolder.kt b/colorpicker/src/main/java/com/slaviboy/colorpicker/ColorHolder.kt new file mode 100644 index 0000000..2cd2857 --- /dev/null +++ b/colorpicker/src/main/java/com/slaviboy/colorpicker/ColorHolder.kt @@ -0,0 +1,58 @@ +package com.slaviboy.colorpicker + +import com.slaviboy.colorpicker.converter.ColorConverter + +// Copyright (C) 2020 Stanislav Georgiev +// https://github.com/slaviboy +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +/** + * ColorHolder class holds the base color, and the current selected color by the + * color pickers, that have this object attached to them. + * @param baseColor base H(Hue) color that is currently selected color + * @param baseColorTransparent base H(Hue) color that is currently selected color, with 0 transparency + * @param selectedColor current selected color by the color pickers + * @param selectedColorTransparent current selected color by the color pickers with 0 transparency + */ +class ColorHolder( + var baseColor: Int = 0, + var baseColorTransparent: Int = 0, + var selectedColor: Int = 0, + var selectedColorTransparent: Int = 0 +) : ColorConverter.OnConvertListener { + + /** + * Update selected color, that is the color that is currently being selected by the color pickers + * that use this color holder object. And base color, that is the HUE color, used by the color pickers, + * to update the UI part. + * @param colorConverter color convert that holds the converted color channels + */ + override fun onConvert(colorConverter: ColorConverter) { + + // get the channels red, green, blue and hue + val r: Int = colorConverter.r + val g: Int = colorConverter.g + val b: Int = colorConverter.getB(ColorConverter.MODEL_RGBA) + val h: Int = colorConverter.h + + // set selector fill color (color picker color) + selectedColor = ColorConverter.RGBtoColor(r, g, b) + selectedColorTransparent = ColorConverter.RGBAtoColor(r, g, b, 0) + + // set base color (HUE) + baseColor = ColorConverter.HSVtoColor(h, 100, 100) + baseColorTransparent = ColorConverter.HSVAtoColor(h, 100, 100, 0) + } +} \ No newline at end of file diff --git a/colorpicker/src/main/java/com/slaviboy/colorpicker/CornerRadius.kt b/colorpicker/src/main/java/com/slaviboy/colorpicker/CornerRadius.kt new file mode 100644 index 0000000..047b412 --- /dev/null +++ b/colorpicker/src/main/java/com/slaviboy/colorpicker/CornerRadius.kt @@ -0,0 +1,86 @@ +package com.slaviboy.colorpicker + +// Copyright (C) 2020 Stanislav Georgiev +// https://github.com/slaviboy +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +/** + * CornerRadius class that hold values for all four corners 'upper: top, left' + * and 'lower: top, left' used when creating round rectangular paths. + * @param upperLeft upper left corner radius + * @param upperRight upper right corner radius + * @param lowerLeft lower left corner radius + * @param lowerRight lower right corner radius + */ +class CornerRadius( + var upperLeft: Float = 0f, + var upperRight: Float = 0f, + var lowerLeft: Float = 0f, + var lowerRight: Float = 0f +) { + + constructor(cornerRadius: CornerRadius) : this( + cornerRadius.upperLeft, + cornerRadius.upperRight, + cornerRadius.lowerLeft, + cornerRadius.lowerRight + ) + + /** + * Set all four radii by individual values passed to the function as arguments. + * @param upperLeft - upper left radius + * @param upperRight - upper right radius + * @param lowerLeft - lower left radius + * @param lowerRight - lower right radius + */ + operator fun set( + upperLeft: Float, upperRight: Float, + lowerLeft: Float, lowerRight: Float + ) { + this.upperLeft = upperLeft + this.upperRight = upperRight + this.lowerLeft = lowerLeft + this.lowerRight = lowerRight + } + + /** + * Add values to each corner radius separately. + * @param addUpperLeft - add value to the upper left radius + * @param addUpperRight - add value to the upper right radius + * @param addLowerLeft - add value to the lower left radius + * @param addLowerRight - add value to the lower right radius + */ + fun add( + addUpperLeft: Float, addUpperRight: Float, + addLowerLeft: Float, addLowerRight: Float + ) { + upperLeft += addUpperLeft + upperRight += addUpperRight + lowerLeft += addLowerLeft + lowerRight += addLowerRight + } + + /** + * Add value to all four corner radii. + * @param value - value to be added to all four corner radii + */ + fun add(value: Float) { + this.add(value, value, value, value) + } + + override fun toString(): String { + return "upperLeft: $upperLeft, upperRight: $upperRight, lowerLeft: $lowerLeft, lowerRight: $lowerRight" + } +} \ No newline at end of file diff --git a/colorpicker/src/main/java/com/slaviboy/colorpicker/Range.kt b/colorpicker/src/main/java/com/slaviboy/colorpicker/Range.kt new file mode 100644 index 0000000..08747c9 --- /dev/null +++ b/colorpicker/src/main/java/com/slaviboy/colorpicker/Range.kt @@ -0,0 +1,71 @@ +package com.slaviboy.colorpicker + +// Copyright (C) 2020 Stanislav Georgiev +// https://github.com/slaviboy +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +/** + * Simple range class with upper and lower limit, also current value that is bound to the limit. + * (lower and upper values can be positive or negative) + * + * Ranges are values that are specific for each color window, depending on selector position in the + * color window, the current range value is changed responsively. + * + * For example if we have horizontal range [lower:0, upper:100] and the color window has width + * of 200px, then if selector is on position. + * X: 0px => current range value is 0 + * X: 100px => current range value is 50 + * X: 200px => current range value is 100 + * + * @param lower set lower bound value for the range + * @param upper set upper bound value for the range + */ +class Range(var lower: Float, var upper: Float) { + + var current = 0.0f // current value that is bound to [lower, upper] + set(value) { + + // get min and max + val min = Math.min(lower, upper) + val max = Math.max(lower, upper) + + // set current with check + field = when { + value < min -> { + min + } + value > max -> { + max + } + else -> { + value + } + } + } + + /** + * Set current value, using total and current allowed values, for example if a total side length + * is 10cm and current position is 2cm, and we have range [0,100]. Then current range value is 20. + * @param total total value + * @param current current value + */ + fun setCurrent(total: Float, current: Float) { + this.current = lower - (lower - upper) * (current / total) + } + + override fun toString(): String { + return "lower: $lower, upper: $upper, current: $current" + } +} \ No newline at end of file diff --git a/colorpicker/src/main/java/com/slaviboy/colorpicker/Updater.kt b/colorpicker/src/main/java/com/slaviboy/colorpicker/Updater.kt new file mode 100644 index 0000000..95744d8 --- /dev/null +++ b/colorpicker/src/main/java/com/slaviboy/colorpicker/Updater.kt @@ -0,0 +1,1161 @@ +package com.slaviboy.colorpicker + +import android.text.Editable +import android.text.InputFilter +import android.text.InputFilter.LengthFilter +import android.text.TextWatcher +import android.view.View +import android.view.inputmethod.EditorInfo +import android.widget.EditText +import android.widget.TextView +import com.slaviboy.colorpicker.converter.ColorConverter +import com.slaviboy.colorpicker.models.* +import com.slaviboy.colorpicker.window.Base +import com.slaviboy.colorpicker.window.Base.OnUpdateListener +import com.slaviboy.colorpicker.window.Circular +import com.slaviboy.colorpicker.window.Rectangular +import com.slaviboy.colorpicker.window.Slider +import com.slaviboy.colorpicker.windows.circular.CircularHS +import com.slaviboy.colorpicker.windows.rectangular.RectangularSL +import com.slaviboy.colorpicker.windows.rectangular.RectangularSV +import com.slaviboy.colorpicker.windows.slider.SliderA +import com.slaviboy.colorpicker.windows.slider.SliderH +import com.slaviboy.colorpicker.windows.slider.SliderV +import kotlin.collections.ArrayList +import kotlin.collections.HashMap +import kotlin.math.roundToInt + +// Copyright (C) 2020 Stanislav Georgiev +// https://github.com/slaviboy +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +/** + * Update class is the class that takes care for updating text views and color windows. + * The only thing you need to do is to attach different components and the class will + * take care for the rest. That way it is easy to create custom color pickers. + * @param colorConverter object that holds the base color, and selected color for the pickers + * @param colorHolder global color converter object, that holds colorHolder for the window + */ +class Updater( + val colorConverter: ColorConverter = ColorConverter(), + val colorHolder: ColorHolder = ColorHolder() +) : OnUpdateListener { + + constructor(colorHolder: ColorHolder) : this(ColorConverter(), colorHolder) + + private val colorWindows: MutableList // list with all attached color windows + private val textViews: HashMap // hash map with text view as key and type as value + private var isInnerTextChange: Boolean // flag showing if setText() is called from inside this class, if false then it is called by the user from the UI + private var newCaretPosition: Int // new caret position after user types in edit text + private lateinit var cachedTextValue: String // cached value that is set when text view is focused by the user + private lateinit var onTextChangeListener: OnTextChangeListener // when text change listener is set, in the onTextChange() method you specify how other text views values changes + private lateinit var onUpdateListener: OnUpdateListener // update listener, from which you can listen for text view or color window change by the user + + init { + + colorWindows = ArrayList() + textViews = HashMap() + isInnerTextChange = false + newCaretPosition = 0 + + colorHolder.onConvert(colorConverter) // initial call, to match the default color + colorConverter.setOnConvertListener(colorHolder) // attach the listener to the color holder + } + + /** + * Attach text view to the updater class with certain type, that shows what text value will expected + * as input and output, from which the other attached color windows and text values will be updated + * synchronously. + * @param textView text view that will be attached + * @param type text view type + */ + fun attachTextView(textView: TextView, type: Int) { + + // make sure value is not already in the hash map + if (!textViews.containsKey(textView)) { + textView.isSingleLine = true + + // add listener to detect text changes + textView.addTextChangedListener(object : TextWatcher { + override fun beforeTextChanged(s: CharSequence, start: Int, count: Int, after: Int) { + this@Updater.beforeTextChanged(start, after) + } + + override fun onTextChanged(s: CharSequence, start: Int, before: Int, count: Int) {} + override fun afterTextChanged(s: Editable) { + this@Updater.afterTextChanged(s) + } + }) + + // set listener for focus changes + textView.onFocusChangeListener = View.OnFocusChangeListener { view, hasFocus -> + if (hasFocus) { + focus(view as TextView, type) + } else { + unfocus(view as TextView, type) + } + } + + // set DONE button for keyboard and add listener + textView.imeOptions = EditorInfo.IME_ACTION_DONE + textView.setOnEditorActionListener { view, actionId, _ -> + if (actionId == EditorInfo.IME_ACTION_DONE) { + unfocus(view, type) + } + false + } + + if (type == TYPE_HEX) { + // for hex limit to 7 digits + textView.filters = arrayOf(LengthFilter(7)) + } else if (type == TYPE_RGB || type == TYPE_RGBA || type == TYPE_HSV || type == TYPE_HSL || type == TYPE_CMYK) { + // multiple values expected + } else { + // for single integer values limit to 3 digits + textView.filters = arrayOf(LengthFilter(3)) + } + + textView.isCursorVisible = false + textViews[textView] = type + + // update text after it is put into the list array + updateTextView(textView) + } + } + + /** + * Attach text view with preset type: hex + * @param textViewHEX - text view with hexadecimal type + */ + fun attachTextViewHEX(textViewHEX: TextView) { + attachTextView(textViewHEX, TYPE_HEX) + } + + /** + * Attach text view with preset type: rgb + * @param textViewRGB text view with combine type: rgb(red,green,blue) + */ + fun attachTextViewRGB(textViewRGB: TextView) { + attachTextView(textViewRGB, TYPE_RGB) + } + + /** + * Attach three text views each one with separate type: r, g and b + * @param textViewR text view with r(red) type + * @param textViewG text view with g(green) type + * @param textViewB text view with b(blue) type + */ + fun attachTextViewRGB(textViewR: TextView, textViewG: TextView, textViewB: TextView) { + attachTextView(textViewR, TYPE_RGBA_R) + attachTextView(textViewG, TYPE_RGBA_G) + attachTextView(textViewB, TYPE_RGBA_B) + } + + /** + * Attach four text views each one with separate type: r, g, b and a + * @param textViewR text view with r(red) type + * @param textViewG text view with g(green) type + * @param textViewB text view with b(blue) type + * @param textViewA text view with a(alpha) type + */ + fun attachTextViewRGBA(textViewR: TextView, textViewG: TextView, textViewB: TextView, textViewA: TextView) { + attachTextViewRGB(textViewR, textViewG, textViewB) + attachTextView(textViewA, TYPE_RGBA_A) + } + + /** + * Attach text view with preset type: rgba + * @param textViewRGBA text view with combine type: rgba(red,green,blue,alpha) + */ + fun attachTextViewRGBA(textViewRGBA: TextView) { + attachTextView(textViewRGBA, TYPE_RGBA) + } + + /** + * Attach text view with preset type: hsv. + * @param textViewHSV text view with combine type: hsv(hue,saturation,value) + */ + fun attachTextViewHSV(textViewHSV: TextView) { + attachTextView(textViewHSV, TYPE_HSV) + } + + /** + * Attach three text views each one with separate type: h, s and v. + * @param textViewH text view with h(hue) type + * @param textViewS text view with s(saturation) type + * @param textViewV text view with v(value) type + */ + fun attachTextViewHSV(textViewH: TextView, textViewS: TextView, textViewV: TextView) { + attachTextView(textViewH, TYPE_HSV_H) + attachTextView(textViewS, TYPE_HSV_S) + attachTextView(textViewV, TYPE_HSV_V) + } + + /** + * Attach text view with preset type: hsv. + * @param textViewHSL text view with combine type: hsl(hue,saturation,lightness) + */ + fun attachTextViewHSL(textViewHSL: TextView) { + attachTextView(textViewHSL, TYPE_HSL) + } + + /** + * Attach three text views each one with separate type: h, s and l. + * @param textViewH text view with h(hue) type + * @param textViewS text view with s(saturation) type + * @param textViewL text view with l(lightness) type + */ + fun attachTextViewHSL(textViewH: TextView, textViewS: TextView, textViewL: TextView) { + attachTextView(textViewH, TYPE_HSL_H) + attachTextView(textViewS, TYPE_HSL_S) + attachTextView(textViewL, TYPE_HSL_L) + } + + /** + * Attach text view with preset type: hwb. + * @param textViewHWB text view with combine type: hwb(hue,white,black) + */ + fun attachTextViewHWB(textViewHWB: TextView) { + attachTextView(textViewHWB, TYPE_HWB) + } + + /** + * Attach three text views each one with separate type: h, w and b. + * @param textViewH text view with h(hue) type + * @param textViewW text view with w(white) type + * @param textViewB text view with b(black) type + */ + fun attachTextViewHWB(textViewH: TextView, textViewW: TextView, textViewB: TextView) { + attachTextView(textViewH, TYPE_HWB_H) + attachTextView(textViewW, TYPE_HWB_W) + attachTextView(textViewB, TYPE_HWB_B) + } + + /** + * Attach text view with preset type: cmyk. + * @param textViewCMYK text view with combine type: cmyk(cyan,magenta,yellow,black) + */ + fun attachTextViewCMYK(textViewCMYK: TextView) { + attachTextView(textViewCMYK, TYPE_CMYK) + } + + /** + * Attach four text views each one with separate type: c, m, y and k. + * @param textViewC text view with c(cyan) type + * @param textViewM text view with m(magenta) type + * @param textViewY text view with y(yellow) type + * @param textViewK text view with k(black) type + */ + fun attachTextViewCMYK(textViewC: TextView, textViewM: TextView, textViewY: TextView, textViewK: TextView) { + attachTextView(textViewC, TYPE_CMYK_C) + attachTextView(textViewM, TYPE_CMYK_M) + attachTextView(textViewY, TYPE_CMYK_Y) + attachTextView(textViewK, TYPE_CMYK_K) + } + + /** + * Attach color windows passed as list argument. + * @param colorWindows color windows that will be attached + */ + fun attachColorWindows(colorWindows: List) { + + // attach multiple color windows using array list + for (i in colorWindows.indices) { + val colorWindow = colorWindows[i] + attachColorWindow(colorWindow) + } + } + + /** + * Attach color windows as multiple arguments. + * @param colorWindows multiple argument variable + */ + fun attachColorWindows(vararg colorWindows: Base) { + + // attach multiple color windows using multiple arguments + for (i in colorWindows.indices) { + attachColorWindow(colorWindows[i]) + } + } + + /** + * Attach color window to the array list with windows, set update listener and default color to window. + * @param colorWindow - color window that will be attached + */ + private fun attachColorWindow(colorWindow: Base) { + + // set listener and color converter + colorWindow.onUpdateListener = this + colorWindow.colorConverter = colorConverter + colorWindow.colorHolder = colorHolder + + // update and redraw to math the default color from the color converter + colorWindow.update() + colorWindow.redraw() + + // add color window to list + colorWindows.add(colorWindow) + } + + /** + * Attach text views passed as list array argument. Each text view must have set tag property + * set to its corresponding text view type. That way the updater knows what values to set to + * each separate text view. + * @param textViews - text views that will be attached + */ + fun attachTextViews(textViews: List) { + + // attach multiple text views using array list + for (i in textViews.indices) { + val textView = textViews[i] + attachTextView(textView) + } + } + + /** + * Attach text view and get type by checking the tag value for expected string values. The tag is set + * using xml, or set using the setTag() method. + * @param textViews -text view that will be attached + */ + fun attachTextView(textViews: TextView) { + + // get string tag, to get type and attach text view + val strTag = textViews.tag.toString() + + // attach only if proper type is set, and is supported by the updater class + val type = getType(strTag) + if (type in TYPE_RGB..TYPE_HEX) { + attachTextView(textViews, type) + } + } + + /** + * Method called when text view is focused, to get cached values and remove unwanted + * symbols for multiple values text view. + * Example HSV: '130°, 45%, 32%' will be converted to '130 45 32' + * @param textView text view that is being focused + * @param type text view type + */ + private fun focus(textView: TextView, type: Int) { + newCaretPosition = textView.selectionStart + + // set cached text value on focus and remove unwanted symbols + if (type == TYPE_RGB || type == TYPE_RGBA || type == TYPE_HSV || type == TYPE_HSL || type == TYPE_HWB || type == TYPE_CMYK) { + isInnerTextChange = true + + // leave only numbers and white space + cachedTextValue = textView.text.toString() + .replace("[^0-9 ]+".toRegex(), "") + textView.text = cachedTextValue + + // if edit text move caret o beginning + if (textView is EditText) { + textView.setSelection(textView.text.length) + } + isInnerTextChange = false + } else { + cachedTextValue = textView.text.toString() + } + textView.isCursorVisible = true + } + + /** + * Method called when text view is unfocused to hide caret and restore special symbols using + * the color converter object, and returning the wanted values with special characters. + * Example HSV: '130 45 32' will be converted to '130°, 45%, 32%' + * @param textView text view that is being unfocused + * @param type text view type + */ + private fun unfocus(textView: TextView, type: Int) { + + // set text value by including special symbols + val withSymbols = true + val withSymbolsStr: String? + withSymbolsStr = when (type) { + TYPE_RGB -> { + colorConverter.getRGB(withSymbols) + } + TYPE_RGBA -> { + colorConverter.getRGBA(withSymbols) + } + TYPE_HSV -> { + colorConverter.getHSV(withSymbols) + } + TYPE_HSL -> { + colorConverter.getHSL(withSymbols) + } + TYPE_HWB -> { + colorConverter.getHWB(withSymbols) + } + TYPE_CMYK -> { + colorConverter.getCMYK(withSymbols) + } + else -> { + cachedTextValue + } + } + textView.text = withSymbolsStr + textView.isCursorVisible = false + } + + /** + * Method called when color window is updated(changed) by the user, using + * the UI interface(when user moves the selector). + * @param colorWindow color window that is being updated by the user + */ + override fun onUpdate(colorWindow: Base) { + + // set flag showing that text values will be changed from inside this class + if (!isInnerTextChange) { + isInnerTextChange = true + } + + // update color windows and text views + updateColorWindows(colorWindow) + updateTextViews() + + // send call, showing that color window was updated + if (::onUpdateListener.isInitialized) { + onUpdateListener.onColorWindowUpdate(colorWindow) + } + + // set flag showing that inner text change was finished + isInnerTextChange = false + } + + /** + * Method that update all color windows except the sender color window. The update includes + * changing the color converter and then redrawing and updating the selector position, for + * all color windows that are included. + * @param colorWindow sender color window whose selector is being moved by the user + */ + private fun updateColorWindows(colorWindow: Base) { + + if (colorWindow is SliderH) { + val w = colorWindow as Slider + + // hue for HSV & HSL + val h = w.range.current.roundToInt() + if (colorConverter.h != h) { + colorConverter.h = h + + // redraw and update other color windows + for (i in colorWindows.indices) { + val tempWindow = colorWindows[i] + if (tempWindow is CircularHS || + tempWindow is SliderH + ) { + tempWindow.update() + } else { + tempWindow.redraw() + } + } + } + } else if (colorWindow is SliderA) { + val w = colorWindow as Slider + + // alpha for RGBA + val a = w.range.current.roundToInt() + if (colorConverter.a != a) { + colorConverter.a = a + + // redraw and update other color windows + for (i in colorWindows.indices) { + val tempWindow = colorWindows[i] + (tempWindow as? SliderA)?.update() + } + } + } else if (colorWindow is SliderV) { + val w = colorWindow as Slider + + // value for HSV + val v = w.range.current.roundToInt() + if (colorConverter.v != v) { + colorConverter.v = v + + // redraw and update other color windows + for (i in colorWindows.indices) { + val tempWindow = colorWindows[i] + if (tempWindow is CircularHS) { + // redraw only, it will use the color converter to get the V for dimming + tempWindow.redraw() + } else if (tempWindow is RectangularSV || + tempWindow is RectangularSL || + tempWindow is SliderV + ) { + tempWindow.update() + } + } + } + } else if (colorWindow is RectangularSV) { + val w = colorWindow as Rectangular + + // saturation and value for HSV + val v = w.verticalRange.current.roundToInt() + val s = w.horizontalRange.current.roundToInt() + if (colorConverter.v != v || colorConverter.getS(ColorConverter.MODEL_HSV) != s) { + + colorConverter.setHSV(colorConverter.h, s, v) + + // redraw and update other color windows + for (i in colorWindows.indices) { + val tempWindow = colorWindows[i] + if (tempWindow is SliderV || + tempWindow is RectangularSL || + tempWindow is RectangularSV + ) { + tempWindow.update() + } else if (tempWindow is CircularHS) { + // need redrawing for dimming + tempWindow.update() + tempWindow.redraw() + } + } + } + } else if (colorWindow is RectangularSL) { + val w = colorWindow as Rectangular + + // saturation and lightness for HSL + val l = w.verticalRange.current.roundToInt() + val s = w.horizontalRange.current.roundToInt() + if (colorConverter.l != l || colorConverter.getS(ColorConverter.MODEL_HSL) != s) { + + colorConverter.setHSL(colorConverter.h, s, l) + + // redraw and update other color windows + for (i in colorWindows.indices) { + val tempWindow = colorWindows[i] + if (tempWindow is SliderV || + tempWindow is RectangularSL || + tempWindow is RectangularSV + ) { + tempWindow.update() + } else if (tempWindow is CircularHS) { + // need redrawing for dimming + tempWindow.update() + tempWindow.redraw() + } + } + } + } else if (colorWindow is CircularHS) { + val w = colorWindow as Circular + + // saturation and hude for HSV + val s = w.distanceRange.current.roundToInt() + val h = w.angleRange.current.roundToInt() + if (colorConverter.h != h || colorConverter.getS(ColorConverter.MODEL_HSV) != s) { + + colorConverter.setHSV(h, s, colorConverter.v) + + // redraw and update other color windows + for (i in colorWindows.indices) { + val tempWindow = colorWindows[i] + if (tempWindow is SliderH || + tempWindow is CircularHS + ) { + // update selector position + tempWindow.update() + } else if (tempWindow is SliderA || + tempWindow is SliderV + ) { + // redraw using base color + tempWindow.redraw() + } else if (tempWindow is RectangularSL || + tempWindow is RectangularSV + ) { + tempWindow.update() + tempWindow.redraw() + } + } + } + } + } + + /** + * Method that update all text view values except the sender view, which is the text view + * the user is changing at the moment, so it does not get in infinite loop by changing itself. + * @param sender sender text view whose value is already changed + */ + private fun updateTextViews(sender: TextView? = null) { + + // if listener is set, call it instead of changing text values + if (::onTextChangeListener.isInitialized) { + onTextChangeListener.onTextChange(colorConverter, sender) + return + } + + // update all text views, except the sender one + for (temp in textViews.keys) { + + // if text view match sender, then skip update + if (sender != null && sender === temp) { + continue + } + updateTextView(temp) + } + } + + /** + * Update text view value using the color converter to get the value for the + * corresponding text view type. + * @param textView + */ + private fun updateTextView(textView: TextView) { + + val type = textViews[textView]!! + var intValue = -1 + + // get integer value for single text view type// convert integer to string for single value types + + // if there is a focused edit text then set caret at the beginning + // get as string for multiple value type + when (type) { + TYPE_RGBA_R -> { + intValue = colorConverter.r + } + TYPE_RGBA_G -> { + intValue = colorConverter.g + } + TYPE_RGBA_B -> { + intValue = colorConverter.getB(ColorConverter.MODEL_RGBA) + } + TYPE_RGBA_A -> { + intValue = colorConverter.a + } + TYPE_HSV_H -> { + intValue = colorConverter.h + } + TYPE_HSV_S -> { + intValue = colorConverter.getS(ColorConverter.MODEL_HSV) + } + TYPE_HSV_V -> { + intValue = colorConverter.v + } + TYPE_HSL_H -> { + intValue = colorConverter.h + } + TYPE_HSL_S -> { + intValue = colorConverter.getS(ColorConverter.MODEL_HSL) + } + TYPE_HSL_L -> { + intValue = colorConverter.l + } + TYPE_CMYK_C -> { + intValue = colorConverter.c + } + TYPE_CMYK_M -> { + intValue = colorConverter.m + } + TYPE_CMYK_Y -> { + intValue = colorConverter.y + } + TYPE_CMYK_K -> { + intValue = colorConverter.k + } + } + + // get the new string value + val value: String + value = if (intValue == -1) { + + // get as string for multiple value type + when (type) { + TYPE_HEX -> { + colorConverter.HEX + } + TYPE_RGB -> { + colorConverter.getRGB(true) + } + TYPE_RGBA -> { + colorConverter.getRGBA(true) + } + TYPE_HSV -> { + colorConverter.getHSV(true) + } + TYPE_HSL -> { + colorConverter.getHSL(true) + } + TYPE_HWB -> { + colorConverter.getHWB(true) + } + TYPE_CMYK -> { + colorConverter.getCMYK(true) + } + else -> { + "" + } + } + } else { + // convert integer to string for single value types + intValue.toString() + } + textView.text = value + + // if there is a focused edit text then set caret at the beginning + if (textView is EditText && textView.isFocused()) { + textView.setSelection(value.length) + } + } + + /** + * Method called before text view, value is changed, used to get the new expected + * caret position after the change. + * @param start + * @param after + */ + private fun beforeTextChanged(start: Int, after: Int) { + + // get new caret position the text view will have after the text change + newCaretPosition = start + after + } + + /** + * After text change is made by the used, check if the new text value matches all expected text + * pattern, that mean the new value passes all the restrictions. + * @param editable editable holding the new text value + */ + private fun afterTextChanged(editable: Editable) { + + // if user is changing the text value using the UI + if (!isInnerTextChange) { + + // set flag showing that inner(from this class) text vales change will be made + isInnerTextChange = true + if (!editable.toString().equals("", ignoreCase = true)) { + for (temp in textViews.keys) { + + // found which text view value is changed by the user + if (temp.text.hashCode() == editable.hashCode() && + temp.isFocused + ) { + + // check if the text change is allowed + checkTextView(temp) + break + } + } + } + + // set the flag showing that inner values are done, and user can again change value using the UI + isInnerTextChange = false + } + } + + /** + * Method called when user changes some of the attached text input values from the UI, and this + * method checks if text value passes all restrictions like allowing only numbers, or check + * for hexadecimal symbols only. + * @param textView - text view whose value will be checked + */ + private fun checkTextView(textView: TextView) { + val type = textViews[textView]!! + val isValueUpdated: Boolean + isValueUpdated = if (type == TYPE_HEX) { + // hex expected + checkHEX(textView) + } else if (type == TYPE_RGB || type == TYPE_RGBA || type == TYPE_HSV || type == TYPE_HSL || type == TYPE_CMYK) { + // multiple values expected + checkMultipleInt(textView, type) + } else { + // single integer value expected + checkSingeInt(textView, type) + } + + // if text value change has passed all restrictions + if (isValueUpdated) { + + // update and redraw all color windows + for (i in colorWindows.indices) { + val tempWindow = colorWindows[i] + tempWindow.update() + tempWindow.redraw() + } + + // update other text views + updateTextViews(textView) + + // send call, showing that text view value was changed + if (::onUpdateListener.isInitialized) { + onUpdateListener.onTextViewUpdate(textView) + } + } + } + + /** + * Method checks if text view value matches the expected HEX text pattern, the includes 7 symbols + * length expectation and only hex symbols. + * @param textView text view whose value is checked + * @return if the expected text patter is correct for the current text view + */ + private fun checkHEX(textView: TextView): Boolean { + + // remove all symbols except the hexadecimal ones + val newText = "#" + textView.text.toString().replace("[^a-f0-9A-F]+".toRegex(), "").toUpperCase() + var isCorrect = false + + // make sure hex string length is matched + if (newText.length == 7) { + colorConverter.HEX = newText + isCorrect = true + } + + // change text value + if (textView is EditText) { + val del = textView.text.length - newText.length + val caretPosition = newCaretPosition + cachedTextValue = newText + + // set caret position after inner text change + textView.setText(newText) + textView.setSelection(caretPosition - del) + } else { + textView.text = newText + } + return isCorrect + } + + /** + * Check if text view value matched multiple integer value, that includes text views holding multiple + * values like: RGB, RGBA, HSV, HSL and CMYK. + * @param textView text view whose value is checked + * @param type text view type + * @return if the expected text patter is correct for the current text view + */ + private fun checkMultipleInt(textView: TextView, type: Int): Boolean { + val newTextArray = textView.text.toString() + .replace("[^0-9 ]+".toRegex(), "") // leave only numbers and white space + .replace(" +".toRegex(), " ") // remove white spaces that are glued together + .split(" ".toRegex()).toTypedArray() // split by white space to get numbers as string array + + // extract the numbers from the string array + var totalValues = 0 + val intValues = IntArray(newTextArray.size) + for (i in intValues.indices) { + if (newTextArray[i].isNotEmpty()) { + intValues[totalValues] = newTextArray[i].toInt() + totalValues++ + } + } + var newText = "" + var isCorrect = false + + // check if the text value is correct and passes all expectations + if (type == TYPE_RGB) { + + // only 3 numbers and each one is in range + if (totalValues == 3 && RGBA.inRangeR(intValues[0]) && + RGBA.inRangeG(intValues[1]) && RGBA.inRangeB(intValues[2]) + ) { + colorConverter.setRGB(intValues[0], intValues[1], intValues[2]) + newText = colorConverter.getRGB(false) + isCorrect = true + } else { + newText = cachedTextValue + } + } else if (type == TYPE_RGBA) { + + // only 4 numbers and each one is in range + if (totalValues == 4 && + RGBA.inRangeR(intValues[0]) && RGBA.inRangeG(intValues[1]) && + RGBA.inRangeB(intValues[2]) && RGBA.inRangeA(intValues[3]) + ) { + colorConverter.setRGBA(intValues[0], intValues[1], intValues[2], intValues[3]) + newText = colorConverter.getRGBA(false) + isCorrect = true + } else { + newText = cachedTextValue + } + } else if (type == TYPE_HSV) { + + // only 3 numbers and each one is in range + if (totalValues == 3 && HSV.inRangeH(intValues[0]) && + HSV.inRangeS(intValues[1]) && HSV.inRangeV(intValues[2]) + ) { + colorConverter.setHSV(intValues[0], intValues[1], intValues[2]) + newText = colorConverter.getHSV(false) + isCorrect = true + } else { + newText = cachedTextValue + } + } else if (type == TYPE_HSL) { + + // only 3 numbers and each one is in range + if (totalValues == 3 && HSL.inRangeH(intValues[0]) && + HSL.inRangeS(intValues[1]) && HSL.inRangeL(intValues[2]) + ) { + colorConverter.setHSL(intValues[0], intValues[1], intValues[2]) + newText = colorConverter.getHSL(false) + isCorrect = true + } else { + newText = cachedTextValue + } + } else if (type == TYPE_CMYK) { + + // only 4 numbers and each one is in range + if (totalValues == 4 && + CMYK.inRangeC(intValues[0]) && CMYK.inRangeM(intValues[1]) && + CMYK.inRangeY(intValues[2]) && CMYK.inRangeK(intValues[3]) + ) { + colorConverter.setCMYK(intValues[0], intValues[1], intValues[2], intValues[3]) + newText = colorConverter.getCMYK(false) + isCorrect = true + } else { + newText = cachedTextValue + } + } + + // update text view value or restore previous using cache if value is not correct + if (textView is EditText) { + val del = textView.text.length - newText.length + val caretPosition = newCaretPosition + cachedTextValue = newText + textView.setText(newText) + textView.setSelection(caretPosition - del) + } else { + textView.text = newText + } + return isCorrect + } + + /** + * Check if text view value matches single integer value, and the value is in the expected + * range that include text types like TYPE_RGBA_R, TYPE_RGBA_G... + * @param textView text view whose value is checked + * @param type text view input type -TYPE_RGBA, TYPE_RGBA_A... + * @return if the expected text patter is correct for the current text view + */ + private fun checkSingeInt(textView: TextView, type: Int): Boolean { + + // replace all characters except digit 0-9 + val newText = textView.text.toString().replace("\\D+".toRegex(), "") + + // get value as int + var value = if (newText.isEmpty()) 0 else newText.toInt() + var inRange = false + + // check if value is in range depending on the text view type + if (type == TYPE_RGBA_R) { + inRange = RGBA.inRangeR(value) + if (inRange) { + colorConverter.r = value + } + } else if (type == TYPE_RGBA_G) { + inRange = RGBA.inRangeG(value) + if (inRange) { + colorConverter.g = value + } + } else if (type == TYPE_RGBA_B) { + inRange = RGBA.inRangeB(value) + if (inRange) { + colorConverter.setB(value, ColorConverter.MODEL_RGBA) + } + } else if (type == TYPE_RGBA_A) { + inRange = RGBA.inRangeA(value) + if (inRange) { + colorConverter.a = value + } + } else if (type == TYPE_HSV_H) { + inRange = HSV.inRangeH(value) + if (inRange) { + colorConverter.h = value + } + } else if (type == TYPE_HSV_S) { + inRange = HSV.inRangeS(value) + if (inRange) { + colorConverter.setS(value, ColorConverter.MODEL_HSV) + } + } else if (type == TYPE_HSV_V) { + inRange = HSV.inRangeV(value) + if (inRange) { + colorConverter.v = value + } + } else if (type == TYPE_HSL_H) { + inRange = HSL.inRangeH(value) + if (inRange) { + colorConverter.h = value + } + } else if (type == TYPE_HSL_S) { + inRange = HSL.inRangeS(value) + if (inRange) { + colorConverter.setS(value, ColorConverter.MODEL_HSL) + } + } else if (type == TYPE_HSL_L) { + inRange = HSL.inRangeL(value) + if (inRange) { + colorConverter.l = value + } + } else if (type == TYPE_HWB_H) { + inRange = HWB.inRangeH(value) + if (inRange) { + colorConverter.h = value + } + } else if (type == TYPE_HWB_W) { + inRange = HWB.inRangeW(value) + if (inRange) { + colorConverter.w = value + } + } else if (type == TYPE_HWB_B) { + inRange = HWB.inRangeB(value) + if (inRange) { + colorConverter.setB(value, ColorConverter.MODEL_HWB) + } + } else if (type == TYPE_CMYK_C) { + inRange = CMYK.inRangeC(value) + if (inRange) { + colorConverter.c = value + } + } else if (type == TYPE_CMYK_M) { + inRange = CMYK.inRangeM(value) + if (inRange) { + colorConverter.m = value + } + } else if (type == TYPE_CMYK_Y) { + inRange = CMYK.inRangeY(value) + if (inRange) { + colorConverter.y = value + } + } else if (type == TYPE_CMYK_K) { + inRange = CMYK.inRangeK(value) + if (inRange) { + colorConverter.k = value + } + } + + if (!inRange) { + value = cachedTextValue.toInt() + } + + // change text value if it is in range + if (textView is EditText) { + val n = "" + value + val del = textView.text.length - n.length + val caretPosition = newCaretPosition + cachedTextValue = n + textView.setText(n) + textView.setSelection(caretPosition - del) + } else { + textView.text = "$value" + } + return inRange + } + + fun setOnTextChangeListener(onTextChangeListener: OnTextChangeListener) { + this.onTextChangeListener = onTextChangeListener + } + + interface OnTextChangeListener { + fun onTextChange(colorConverter: ColorConverter?, sender: TextView?) + } + + interface OnUpdateListener { + + /** + * Method called when text view value is changed by the user. + * @param textView - sender text view whose value is changed + */ + fun onTextViewUpdate(textView: TextView?) + + /** + * Method called when color window value is changed by the user. + * @param colorWindow - sender color window whose value is changed + */ + fun onColorWindowUpdate(colorWindow: Base?) + } + + fun setOnUpdateListener(onUpdateListener: OnUpdateListener) { + this.onUpdateListener = onUpdateListener + } + + companion object { + + // text view available types, that are attached to certain - text view using the tag attribute + const val TYPE_NONE = 0 + const val TYPE_RGB = 1 + const val TYPE_RGBA = 2 + const val TYPE_RGBA_R = 3 + const val TYPE_RGBA_G = 4 + const val TYPE_RGBA_B = 5 + const val TYPE_RGBA_A = 6 + const val TYPE_HSV = 7 + const val TYPE_HSV_H = 8 + const val TYPE_HSV_S = 9 + const val TYPE_HSV_V = 10 + const val TYPE_HSL = 11 + const val TYPE_HSL_H = 12 + const val TYPE_HSL_S = 13 + const val TYPE_HSL_L = 14 + const val TYPE_HWB = 15 + const val TYPE_HWB_H = 16 + const val TYPE_HWB_W = 17 + const val TYPE_HWB_B = 18 + const val TYPE_CMYK = 19 + const val TYPE_CMYK_C = 20 + const val TYPE_CMYK_M = 21 + const val TYPE_CMYK_Y = 22 + const val TYPE_CMYK_K = 23 + const val TYPE_HEX = 24 + + /** + * Get text view type(as integer representation), by passing it as string argument. + * This is method is used only once on initialization, since checking strings are + * cost operations. + * @param strTag string tag showing the text view expected type + * @return integer representation of text view type + */ + fun getType(strTag: String): Int { + if (strTag.isNotEmpty()) { + when (strTag) { + "rgb" -> return TYPE_RGB + "rgba" -> return TYPE_RGBA + "rgba_r" -> return TYPE_RGBA_R + "rgba_g" -> return TYPE_RGBA_G + "rgba_b" -> return TYPE_RGBA_B + "rgba_a" -> return TYPE_RGBA_A + "hsv" -> return TYPE_HSV + "hsv_h" -> return TYPE_HSV_H + "hsv_s" -> return TYPE_HSV_S + "hsv_v" -> return TYPE_HSV_V + "hsl" -> return TYPE_HSL + "hsl_h" -> return TYPE_HSL_H + "hsl_s" -> return TYPE_HSL_S + "hsl_l" -> return TYPE_HSL_L + "hwb" -> return TYPE_HWB + "hwb_h" -> return TYPE_HWB_H + "hwb_w" -> return TYPE_HWB_W + "hwb_b" -> return TYPE_HWB_B + "hex" -> return TYPE_HEX + "cmyk" -> return TYPE_CMYK + "cmyk_c" -> return TYPE_CMYK_C + "cmyk_m" -> return TYPE_CMYK_M + "cmyk_y" -> return TYPE_CMYK_Y + "cmyk_k" -> return TYPE_CMYK_K + } + } + return TYPE_NONE + } + + /** + * Static method that returns text view type as integer representation. + * @param textView - text view whose integer type representation will be returned + * @return integer representation of text view type + */ + fun getType(textView: TextView): Int { + val tag = textView.tag + val strTag = tag?.toString() ?: "" + return getType(strTag) + } + } + +} \ No newline at end of file diff --git a/colorpicker/src/main/java/com/slaviboy/colorpicker/converter/ColorConverter.kt b/colorpicker/src/main/java/com/slaviboy/colorpicker/converter/ColorConverter.kt new file mode 100644 index 0000000..edf5c3f --- /dev/null +++ b/colorpicker/src/main/java/com/slaviboy/colorpicker/converter/ColorConverter.kt @@ -0,0 +1,1581 @@ +package com.slaviboy.colorpicker.converter + +import android.graphics.Color +import android.util.Log +import com.slaviboy.colorpicker.models.* +import java.util.* +import kotlin.math.roundToInt + +// Copyright (C) 2020 Stanislav Georgiev +// https://github.com/slaviboy +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +/** + * ColorConverter class is responsible for the conversion from one color model to another + * (by default all color models are used in the conversion). There are also public static + * methods that can convert color model to color-int(integer representation of color). + */ +class ColorConverter { + + private lateinit var rgba: RGBA // rgba(red, green, blue, alpha) model object + private lateinit var cmyk: CMYK // cmyk(cyan, magenta, yellow, black) model object + private lateinit var hsl: HSL // hsl(hue, saturation, lightness) model object + private lateinit var hsv: HSV // hsv(hue, saturation, value) model object + private lateinit var hwb: HWB // hwb(hue, white, black) model object + private lateinit var hex: HEX // hex(hexadecimal) model object + private lateinit var onConvertListener: OnConvertListener // listener with method that is called when, conversion for all used models is done + + // show which model will be used in the conversion from one model to another + private val usedModels = + booleanArrayOf( + false, // none + true, // rgb + true, // rgba + true, // hsv + true, // hsl + true, // hwb + true, // cmyk + true // hex + ) + + /** + * Constructor that sets r, g and b values for current selected color + * @param r red + * @param g green + * @param b blue + */ + constructor(r: Int = 0, g: Int = 0, b: Int = 0) { + init() + setRGB(r, g, b) + } + + /** + * Constructor that sets r, g, b and a values for current selected color + * @param r red + * @param g green + * @param b blue + * @param a alpha + */ + constructor(r: Int, g: Int, b: Int, a: Int) { + init() + setRGBA(r, g, b, a) + } + + /** + * Constructor that sets RGBA object for current selected color. + * @param rgba RGBA object + */ + constructor(rgba: RGBA) { + init() + setRGBA(rgba) + } + + /** + * Constructor that sets HSV object for current selected color. + * @param hsv HSV object + */ + constructor(hsv: HSV) { + init() + setHSV(hsv) + } + + /** + * Constructor that sets HSL object for current selected color. + * @param hsl HSL object + */ + constructor(hsl: HSL) { + init() + setHSL(hsl) + } + + /** + * Constructor that sets HWB object for current selected color. + * @param hwb HWB object + */ + constructor(hwb: HWB) { + init() + setHWB(hwb) + } + + /** + * Constructor that sets CMYK object for current selected color. + * @param cmyk CMYK object + */ + constructor(cmyk: CMYK) { + init() + setCMYK(cmyk) + } + + /** + * Constructor that sets HEX object for current selected color. + * @param hex HEX + */ + constructor(hex: HEX) { + init() + setHEX(hex) + } + + /** + * Constructor that sets hex string value for current selected color + * @param hex hexadecimal string value in format #RRGGBB + */ + constructor(hex: String) { + init() + HEX = hex + } + + /** + * Set color model object, using it instance determine which type it is and set + * the corresponding color model. + * @param model current color model + */ + private fun setColorModel(model: Any) { + init() + + // transfer current model values, so it does not keep reference + when (model) { + is RGBA -> { + rgba.setRGBA(model) + } + is HSV -> { + hsv.setHSV(model) + } + is HSL -> { + hsl.setHSL(model) + } + is HWB -> { + hwb.setHWB(model) + } + is HEX -> { + hex.setHEX(model) + } + is CMYK -> { + cmyk.setCMYK(model) + } + } + + // convert to other models + val modelType = getModelType(model) + convert(modelType) + } + + fun init() { + + // init color model objects + rgba = RGBA() + cmyk = CMYK() + hsl = HSL() + hsv = HSV() + hwb = HWB() + hex = HEX() + } + + /** + * Get color model integer representation, determine by the instance it supposed to be representing. + * @param model object model + * @return integer representation for the model type + */ + private fun getModelType(model: Any): Int { + when (model) { + is RGBA -> { + return MODEL_RGBA + } + is HSV -> { + return MODEL_HSV + } + is HSL -> { + return MODEL_HSL + } + is HWB -> { + return MODEL_HWB + } + is HEX -> { + return MODEL_HEX + } + is CMYK -> { + return MODEL_CMYK + } + else -> return MODEL_NONE + } + } + + /** + * Convert current color model into all used color models, those are all color model + * that are needed, and set by the user (by default all model types are made available). + * @param currentModelType current model type that will be converted to the other models + */ + private fun convert(currentModelType: Int) { + when (currentModelType) { + MODEL_RGB, MODEL_RGBA -> { + RGBtoCMYK() + RGBtoHEX() + RGBtoHSV() + RGBtoHSL() + RGBtoHWB() + } + MODEL_HSV -> { + HSVtoRGB() + RGBtoCMYK() + RGBtoHEX() + RGBtoHWB() + HSVtoHSL() + } + MODEL_HSL -> { + HSLtoRGB() + RGBtoCMYK() + RGBtoHEX() + RGBtoHWB() + HSLtoHSV() + } + MODEL_HWB -> { + HWBtoRGB() + RGBtoCMYK() + RGBtoHEX() + RGBtoHSV() + RGBtoHSL() + } + MODEL_CMYK -> { + CMYKtoRGB() + RGBtoHEX() + RGBtoHSV() + RGBtoHSL() + RGBtoHWB() + } + MODEL_HEX -> { + HEXtoRGB() + RGBtoCMYK() + RGBtoHSV() + RGBtoHSL() + RGBtoHWB() + } + } + + // call showing that update was made + if (::onConvertListener.isInitialized) { + onConvertListener.onConvert(this) + } + } + + /** + * Convert HSV to HSL for current object. + */ + private fun HSVtoHSL() { + val s = hsv.s / 100.0 + val v = hsv.v / 100.0 + val hslL = (2.0 - s) * v / 2.0 + + val hslS = if (hslL != 0.0) { + when { + hslL == 1.0 -> { + 0.0 + } + hslL < 0.5 -> { + s * v / (hslL * 2.0) + } + else -> { + s * v / (2.0 - hslL * 2.0) + } + } + } else { + 0.0 + } + + // normalize + hsl.h = hsv.h + hsl.s = (hslS * 100.0).roundToInt() + hsl.l = (hslL * 100.0).roundToInt() + } + + /** + * Convert HSL to HSV for current object. + */ + private fun HSLtoHSV() { + if (!usedModels[MODEL_HSV]) { + return + } + val s = hsl.s / 100.0 + val l = hsl.l / 100.0 + val t = s * if (l < 0.5) l else 1 - l + val hsvV = l + t + val hsvS = (if (l > 0.0) 2.0 * t / hsvV else hsv.s / 100.0).toDouble() + + // normalize + hsv.h = hsl.h + hsv.s = (hsvS * 100).roundToInt() + hsv.v = (hsvV * 100).roundToInt() + } + + /** + * Convert HEX to RGB for current object. + */ + private fun HEXtoRGB() { + if (!usedModels[MODEL_RGBA]) { + return + } + val hex = hex.hex + val r = hex shr 16 and 0xFF + val g = hex shr 8 and 0xFF + val b = hex shr 0 and 0xFF + _setR(r) + _setG(g) + _setB(b, MODEL_RGBA) + } + + /** + * Convert HSV to RGB for current object. + */ + private fun HSVtoRGB() { + if (!usedModels[MODEL_RGBA]) { + return + } + val h = hsv.h / 360.0 + val s = hsv.s / 100.0 + val v = hsv.v / 100.0 + var r = 0.0 + var g = 0.0 + var b = 0.0 + if (s == 0.0) { + b = v + g = b + r = g + } else { + var i = (h * 6).toInt() + val f = h * 6 - i + val p = v * (1 - s) + val q = v * (1 - f * s) + val t = v * (1 - (1 - f) * s) + i %= 6 + when (i) { + 0 -> { + r = v + g = t + b = p + } + 1 -> { + r = q + g = v + b = p + } + 2 -> { + r = p + g = v + b = t + } + 3 -> { + r = p + g = q + b = v + } + 4 -> { + r = t + g = p + b = v + } + 5 -> { + r = v + g = p + b = q + } + } + } + + // normalize + rgba.r = (r * 255).roundToInt() + rgba.g = (g * 255).roundToInt() + rgba.b = (b * 255).roundToInt() + } + + /** + * Convert HWB to RGB for current object. + */ + private fun HWBtoRGB() { + if (!usedModels[MODEL_RGBA]) { + return + } + var w = hwb.w / 100.0 + var b = hwb.b / 100.0 + + // get base color + val rgb = HSLtoColor(hwb.h, 100, 50) + var r = Color.red(rgb) / 255.0 + var g = Color.green(rgb) / 255.0 + var bl = Color.blue(rgb) / 255.0 + val tot = w + b + if (tot > 1) { + w /= tot + b /= tot + } + r *= 1 - w - b + r += w + g *= 1 - w - b + g += w + bl *= 1 - w - b + bl += w + + // normalize + rgba.r = (r * 255).roundToInt() + rgba.g = (g * 255).roundToInt() + rgba.b = (bl * 255).roundToInt() + } + + /** + * Convert HSL to RGB for current object. + */ + private fun HSLtoRGB() { + if (!usedModels[MODEL_RGBA]) { + return + } + val h = hsl.h / 360.0 + val s = hsl.s / 100.0 + val l = hsl.l / 100.0 + val r: Double + val g: Double + val b: Double + if (s == 0.0) { + b = l + g = b + r = g // achromatic + } else { + val q = if (l < 0.5) { + l * (1 + s) + } else { + l + s - l * s + } + val p = 2 * l - q + r = HUEtoRGB(p, q, h + 1.0 / 3.0) + g = HUEtoRGB(p, q, h) + b = HUEtoRGB(p, q, h - 1.0 / 3.0) + } + + // normalize + rgba.r = (r * 255).roundToInt() + rgba.g = (g * 255).roundToInt() + rgba.b = (b * 255).roundToInt() + } + + /** + * Convert CMYK to RGB for current object. + */ + private fun CMYKtoRGB() { + if (!usedModels[MODEL_RGBA]) { + return + } + val c = cmyk.c / 100.0 + val m = cmyk.m / 100.0 + val y = cmyk.y / 100.0 + val k = cmyk.k / 100.0 + val r = 1 - Math.min(1.0, c * (1 - k) + k) + val g = 1 - Math.min(1.0, m * (1 - k) + k) + val b = 1 - Math.min(1.0, y * (1 - k) + k) + + // normalize + rgba.r = (r * 255).roundToInt() + rgba.g = (g * 255).roundToInt() + rgba.b = (b * 255).roundToInt() + } + + /** + * Convert RGB to HEX for current object. + */ + private fun RGBtoHEX() { + if (!usedModels[MODEL_HEX]) { + return + } + val hex = String.format( + "%02x%02x%02x", + rgba.r, + rgba.g, + rgba.b + ).toUpperCase() + this.hex.setHEX("#$hex") + } + + /** + * Convert RGB to HSV for current object. + */ + private fun RGBtoHSV() { + if (!usedModels[MODEL_HSV]) { + return + } + val r = rgba.r / 255.0 + val g = rgba.g / 255.0 + val b = rgba.b / 255.0 + val min = Math.min(Math.min(r, g), b) + val max = Math.max(Math.max(r, g), b) + val delta = max - min + var h = 0.0 + val s: Double = if (max == 0.0) 0.0 else delta / max + if (max != min) { + if (max == r) { + h = (g - b) / delta + if (g < b) 6.0 else 0.0 + } else if (max == g) { + h = (b - r) / delta + 2.0 + } else if (max == b) { + h = (r - g) / delta + 4.0 + } + h /= 6.0 + } + + // normalize + hsv.h = (h * 360).roundToInt() + hsv.s = (s * 100).roundToInt() + hsv.v = (max * 100).roundToInt() + } + + /** + * Convert RGB to HSL for current object. + */ + private fun RGBtoHSL() { + if (!usedModels[MODEL_HSL]) { + return + } + val r = rgba.r / 255.0 + val g = rgba.g / 255.0 + val b = rgba.b / 255.0 + val min = Math.min(Math.min(r, g), b) + val max = Math.max(Math.max(r, g), b) + val delta = max - min + var h = 0.0 + var s = 0.0 + val l = (max + min) / 2.0 + if (max != min) { + s = if (l > 0.5) delta / (2.0 - max - min) else delta / (max + min) + when (max) { + r -> { + h = (g - b) / delta + if (g < b) 6 else 0 + } + g -> { + h = (b - r) / delta + 2 + } + b -> { + h = (r - g) / delta + 4 + } + } + h /= 6.0 + } + + // normalize + hsl.h = (h * 360).roundToInt() + hsl.s = (s * 100).roundToInt() + hsl.l = (l * 100).roundToInt() + } + + /** + * Convert RGB to HWB for current object. + */ + private fun RGBtoHWB() { + if (!usedModels[MODEL_HWB]) { + return + } + val r = rgba.r / 255.0 + val g = rgba.g / 255.0 + val b = rgba.b / 255.0 + val max = Math.max(Math.max(r, g), b) + val min = Math.min(Math.min(r, g), b) + var h = 0.0 + val bl = 1 - max + val delta = max - min + if (max != min) { + if (max == r) { + h = (g - b) / delta + if (g < b) 6.0 else 0.0 + } else if (max == g) { + h = (b - r) / delta + 2.0 + } else if (max == b) { + h = (r - g) / delta + 4.0 + } + h /= 6.0 + } + + // normalize + hwb.h = (h * 360).roundToInt() + hwb.w = (min * 100).roundToInt() + hwb.b = (bl * 100).roundToInt() + } + + /** + * Convert RGB to CMYK for current object. + */ + private fun RGBtoCMYK() { + if (!usedModels[MODEL_CMYK]) { + return + } + val r = rgba.r / 255.0 + val g = rgba.g / 255.0 + val b = rgba.b / 255.0 + var c = 0.0 + var m = 0.0 + var y = 0.0 + val k = Math.min(Math.min(1 - r, 1 - g), 1 - b) + if (k != 1.0) { + c = (1 - r - k) / (1 - k) + m = (1 - g - k) / (1 - k) + y = (1 - b - k) / (1 - k) + } + + // normalize + cmyk.c = (c * 100).roundToInt() + cmyk.m = (m * 100).roundToInt() + cmyk.y = (y * 100).roundToInt() + cmyk.k = (k * 100).roundToInt() + } + + /** + * Set which color models will be updated(color model used when converted from one color model + * to another). Models that are not included are not used in the conversion for faster performance. + * @param models color model that are included + */ + fun setUsedModels(vararg models: Int) { + + // set which color models to be used in the conversion + for (i in models.indices) { + val index = models[i] + if (index > 0 && index < usedModels.size) { + usedModels[index] = true + } + } + } + + /** + * Set which color model will be used in the conversion between color model, pass + * argument as an array. + * @param usedModels array with used color models + */ + fun setUsedModels(usedModels: BooleanArray) { + for (i in this.usedModels.indices) { + if (i < usedModels.size) { + this.usedModels[i] = usedModels[i] + } + } + } + + /** + * Clear all used color models, by setting there values to false. + * That way they wont be used in the color conversion. + */ + fun clearUsedModels() { + for (i in usedModels.indices) { + usedModels[i] = false + } + } + + /** + * Set suffixes that will be attached, to multiple values color model, + * when toString() method is called and the string value is returned. + * @param model color model + * @param suffixes suffixes that will be attach directly to each value + */ + fun setSuffix(model: Int, vararg suffixes: String) { + if (suffixes.size == 3) { + when (model) { + MODEL_RGB -> { + rgba.setSuffix(suffixes[0], suffixes[1], suffixes[2]) + } + MODEL_HSV -> { + hsv.setSuffix(suffixes[0], suffixes[1], suffixes[2]) + } + MODEL_HSL -> { + hsl.setSuffix(suffixes[0], suffixes[1], suffixes[2]) + } + MODEL_HWB -> { + hwb.setSuffix(suffixes[0], suffixes[1], suffixes[2]) + } + } + } else if (suffixes.size == 4) { + if (model == MODEL_RGBA) { + rgba.setSuffix( + suffixes[0], + suffixes[1], + suffixes[2], + suffixes[3] + ) + } else if (model == MODEL_CMYK) { + cmyk.setSuffix( + suffixes[0], + suffixes[1], + suffixes[2], + suffixes[3] + ) + } + } + } + + /** + * Set current color using RGBA object. + * @param rgba rgba object + */ + fun setRGBA(rgba: RGBA) { + _setR(rgba.r) + _setG(rgba.g) + _setB(rgba.b, MODEL_RGBA) + _setA(rgba.a) + convert(MODEL_RGBA) + } + + /** + * Set current color using RGB values. + * @param r red + * @param g green + * @param b blue + */ + fun setRGB(r: Int, g: Int, b: Int) { + _setR(r) + _setG(g) + _setB(b, MODEL_RGB) + convert(MODEL_RGB) + } + + /** + * Set current color using RGBA values. + * @param r red + * @param g green + * @param b blue + * @param a alpha + */ + fun setRGBA(r: Int, g: Int, b: Int, a: Int) { + _setR(r) + _setG(g) + _setB(b, MODEL_RGBA) + _setA(a) + convert(MODEL_RGBA) + } + + /** + * Set current color using CMYK object. + * @param cmyk cmyk object + */ + fun setCMYK(cmyk: CMYK) { + _setC(cmyk.c) + _setM(cmyk.m) + _setY(cmyk.y) + _setK(cmyk.k) + convert(MODEL_CMYK) + } + + /** + * Set current color using CMYK values. + * @param c cyan + * @param m magenta + * @param y yellow + * @param k black + */ + fun setCMYK(c: Int, m: Int, y: Int, k: Int) { + _setC(c) + _setM(m) + _setY(y) + _setK(k) + convert(MODEL_CMYK) + } + + /** + * Set current color using HSV values. + * @param h hue + * @param s saturation + * @param v value + */ + fun setHSV(h: Int, s: Int, v: Int) { + _setH(h) + _setS(s, MODEL_HSV) + _setV(v) + convert(MODEL_HSV) + } + + /** + * Set current color using HSL values. + * @param h hue + * @param s saturation + * @param l lightness + */ + fun setHSL(h: Int, s: Int, l: Int) { + _setH(h) + _setS(s, MODEL_HSL) + _setL(l) + convert(MODEL_HSL) + } + + /** + * Set current color using HWB values. + * @param h hue + * @param w white + * @param b black + */ + fun setHWB(h: Int, w: Int, b: Int) { + _setH(h) + _setW(w) + _setB(b, MODEL_HWB) + convert(MODEL_HWB) + } + + /** + * Set current color using HSV object. + * @param hsv HSV object + */ + fun setHSV(hsv: HSV) { + _setH(hsv.h) + _setS(hsv.s, MODEL_HSV) + _setV(hsv.v) + convert(MODEL_HSV) + } + + /** + * Set current color using HSL object. + * @param hsl HSL object + */ + fun setHSL(hsl: HSL) { + _setH(hsl.h) + _setS(hsl.s, MODEL_HSL) + _setL(hsl.l) + convert(MODEL_HSL) + } + + /** + * Set current color using HWB object. + * @param hwb HWB object + */ + fun setHWB(hwb: HWB) { + _setH(hwb.h) + _setW(hwb.w) + _setB(hwb.b, MODEL_HWB) + convert(MODEL_HWB) + } + + /** + * Set current color using HEX object. + * @param hex HEX object + */ + fun setHEX(hex: HEX) { + _setHEX(hex.hexString) + } + + /** + * Get RGB, values as string. + * @param withSuffix - include suffix, after each value + * @return string representation + */ + fun getRGB(withSuffix: Boolean = true): String { + return rgba.getString(false, withSuffix) + } + + /** + * Get RGBA, values as string. + * @param withSuffix - include suffix, after each value + * @return string representation + */ + fun getRGBA(withSuffix: Boolean = true): String { + return rgba.getString(true, withSuffix) + } + + /** + * Get CMYK, values as string. + * @param withSuffix include suffix, after each value + * @return string representation + */ + fun getCMYK(withSuffix: Boolean = true): String { + return cmyk.getString(withSuffix) + } + + /** + * Get HSL, values as string. + * @param withSuffix include suffix, after each value + * @return string representation + */ + fun getHSL(withSuffix: Boolean = true): String { + return hsl.getString(withSuffix) + } + + /** + * Get HWB, values as string. + * @param withSuffix include suffix, after each value + * @return string representation + */ + fun getHWB(withSuffix: Boolean = true): String { + return hwb.getString(withSuffix) + } + + /** + * Get HWB, values as string. + * @param withSuffix include suffix, after each value + * @return string representation + */ + fun getHSV(withSuffix: Boolean = true): String { + return hsv.getString(withSuffix) + } + + /** + * Setter and getter for current color using hexadecimal string. + * @param hex hexadecimal string + */ + var HEX: String + get() = hex.toString() + set(hex) { + _setHEX(hex) + } + + /** + * Setter and getter for current H(hue) component for the + * (HSV, HSL, HWB) color models + */ + var h: Int + get() = hsv.h + set(h) { + _setH(h) + convert(MODEL_HSV) + } + + /** + * Setter and getter for current R(red) component for the + * (RGBA) color model + */ + var r: Int + get() = rgba.r + set(r) { + _setR(r) + convert(MODEL_RGBA) + } + + /** + * Setter and getter for current G(green) component for the + * (RGBA) color model + */ + var g: Int + get() = rgba.g + set(g) { + _setG(g) + convert(MODEL_RGBA) + } + + /** + * Setter and getter for current A(alpha) component for the + * (RGBA) color model + */ + var a: Int + get() = rgba.a + set(a) { + // alpha is not used in other models, so conversion is not needed + _setA(a) + } + + /** + * Setter and getter for current L(lightness) component for the + * (HSL) color model + */ + var l: Int + get() = hsl.l + set(l) { + _setL(l) + convert(MODEL_HSL) + } + + /** + * Setter and getter for current C(cyan) component for the + * (CMYK) color model + */ + var c: Int + get() = cmyk.c + set(c) { + _setC(c) + convert(MODEL_CMYK) + } + + /** + * Setter and getter for current M(magenta) component for the + * (CMYK) color model + */ + var m: Int + get() = cmyk.m + set(m) { + _setM(m) + convert(MODEL_CMYK) + } + + /** + * Setter and getter for current Y(yellow) component for the + * (CMYK) color model + */ + var y: Int + get() = cmyk.y + set(y) { + _setY(y) + convert(MODEL_CMYK) + } + + /** + * Setter and getter for current B(black) component for the + * (CMYK) color model + */ + var k: Int + get() = cmyk.k + set(k) { + _setK(k) + convert(MODEL_CMYK) + } + + /** + * Setter and getter for current V(value) component for the + * (HSV) color model + */ + var v: Int + get() = hsv.v + set(v) { + _setV(v) + convert(MODEL_HSV) + } + + /** + * Setter and getter for current W(white) component for the + * (HWB) color model + */ + var w: Int + get() = hwb.w + set(w) { + _setW(w) + convert(MODEL_HWB) + } + + /** + * Setter the S(saturation) component, for either HSV or HSL color models + * @param s saturation new value + * @param model show from which color model the component is + */ + fun setS(s: Int, model: Int) { + _setS(s, model) + if (model == MODEL_HSV) { + convert(MODEL_HSV) + } else if (model == MODEL_HSL) { + convert(MODEL_HSL) + } + } + + /** + * Setter the B component, for either RGBA(blue) or HWB(black) color models + * @param b new value + * @param model show from which color model the component is + */ + fun setB(b: Int, model: Int) { + _setB(b, model) + if (model == MODEL_RGBA) { + convert(MODEL_RGBA) + } else if (model == MODEL_HWB) { + convert(MODEL_HWB) + } + } + + /** + * Getter the S component, for either HSV or HSL color models + * @param model show from which color model the component is + */ + fun getS(model: Int): Int { + return when (model) { + MODEL_HSV -> { + hsv.s + } + MODEL_HSL -> { + hsl.s + } + else -> { + -1 + } + } + } + + /** + * Getter the B component, for either RGBA(blue) or HWB(black) color models + * @param model show from which color model the component is + */ + fun getB(model: Int): Int { + return when (model) { + MODEL_RGBA -> { + rgba.b + } + MODEL_HWB -> { + hwb.b + } + else -> { + -1 + } + } + } + + private fun _setC(c: Int) { + var c = c + if (c > CMYK.C_MAX) { + c = CMYK.C_MAX + } else if (c < CMYK.C_MIN) { + c = CMYK.C_MIN + } + cmyk.c = c + } + + private fun _setM(m: Int) { + var m = m + if (m > CMYK.M_MAX) { + m = CMYK.M_MAX + } else if (m < CMYK.M_MIN) { + m = CMYK.M_MIN + } + cmyk.m = m + } + + private fun _setY(y: Int) { + var y = y + if (y > CMYK.Y_MAX) { + y = CMYK.Y_MAX + } else if (y < CMYK.Y_MIN) { + y = CMYK.Y_MIN + } + cmyk.y = y + } + + private fun _setK(k: Int) { + var k = k + if (k > CMYK.K_MAX) { + k = CMYK.K_MAX + } else if (k < CMYK.K_MIN) { + k = CMYK.K_MIN + } + cmyk.k = k + } + + private fun _setR(r: Int) { + + // check for value in range + var r = r + if (r > RGBA.R_MAX) { + r = RGBA.R_MAX + } else if (r < RGBA.R_MIN) { + r = RGBA.R_MIN + } + rgba.r = r + } + + private fun _setG(g: Int) { + + // check for value in range + var g = g + if (g > RGBA.G_MAX) { + g = RGBA.G_MAX + } else if (g < RGBA.G_MIN) { + g = RGBA.G_MIN + } + rgba.g = g + } + + private fun _setB(b: Int, model: Int) { + + // check for value in range + var b = b + if (model == MODEL_RGB || model == MODEL_RGBA) { + // blue + if (b > RGBA.B_MAX) { + b = RGBA.B_MAX + } else if (b < RGBA.B_MIN) { + b = RGBA.B_MIN + } + rgba.b = b + } else if (model == MODEL_HWB) { + //black + if (b > HWB.B_MAX) { + b = HWB.B_MAX + } else if (b < HWB.B_MIN) { + b = HWB.B_MIN + } + hwb.b = b + } + } + + private fun _setA(a: Int) { + + // check for value in range + var a = a + if (a > RGBA.A_MAX) { + a = RGBA.A_MAX + } else if (a < RGBA.A_MIN) { + a = RGBA.A_MIN + } + rgba.a = a + } + + private fun _setH(h: Int) { + var h = h + if (h > HSV.H_MAX) { + h = HSV.H_MAX + } else if (h < HSV.H_MIN) { + h = HSV.H_MIN + } + hsl.h = h + hsv.h = h + } + + private fun _setS(s: Int, model: Int) { + var s = s + if (model == MODEL_HSV) { + if (s > HSV.S_MAX) { + s = HSV.S_MAX + } else if (s < HSV.S_MIN) { + s = HSV.S_MIN + } + hsv.s = s + } else if (model == MODEL_HSL) { + if (s > HSL.S_MAX) { + s = HSL.S_MAX + } else if (s < HSL.S_MIN) { + s = HSL.S_MIN + } + hsl.s = s + } + } + + private fun _setV(v: Int) { + var v = v + if (v > HSV.V_MAX) { + v = HSV.V_MAX + } else if (v < HSV.V_MIN) { + v = HSV.V_MIN + } + hsv.v = v + } + + private fun _setL(l: Int) { + var l = l + if (l > HSL.L_MAX) { + l = HSL.L_MAX + } else if (l < HSL.L_MIN) { + l = HSL.L_MIN + } + hsl.l = l + } + + private fun _setW(w: Int) { + var w = w + if (w > HWB.W_MAX) { + w = HWB.W_MAX + } else if (w < HWB.W_MIN) { + w = HWB.W_MIN + } + hwb.w = w + } + + private fun _setHEX(hex: String) { + val newHex = "#" + hex.replace("[^a-f0-9A-F]+".toRegex(), "").toUpperCase() + if (newHex.length == 7) { + this.hex.setHEX(hex) + convert(MODEL_HEX) + } + } + + interface OnConvertListener { + + /** + * Method called when conversion is made from a specific color to all color + * models included in the array -usedModels, containing all models used in + * the conversion. + * @param colorConverter - current color converter object, from which you can get the new converted values + */ + fun onConvert(colorConverter: ColorConverter) + } + + /** + * Set OnConvertListener listener, that will be triggered once a conversion + * is made, from one color to another. + */ + fun setOnConvertListener(onConvertListener: OnConvertListener) { + this.onConvertListener = onConvertListener + } + + override fun toString(): String { + return "RGBA($rgba), HSL($hsl), HSV($hsv), HWB($hwb), CMYK($cmyk), HEX($hex)" + } + + companion object { + + // supported color models used bt the class + const val MODEL_NONE = 0 + const val MODEL_RGB = 1 + const val MODEL_RGBA = 2 + const val MODEL_HSV = 3 + const val MODEL_HSL = 4 + const val MODEL_HWB = 5 + const val MODEL_CMYK = 6 + const val MODEL_HEX = 7 + + /** + * Static method hue to r, g, and b separately used by HSLtoColor and HSLtoRGB methods. + */ + private fun HUEtoRGB(p: Double, q: Double, t: Double): Double { + var t = t + if (t < 0.0) t += 1.0 + if (t > 1.0) t -= 1.0 + if (t < 1.0 / 6.0) return p + (q - p) * 6.0 * t + if (t < 1.0 / 2.0) return q + return if (t < 2.0 / 3.0) p + (q - p) * (2.0 / 3.0 - t) * 6.0 else p + } + + /** + * Static method convert RGB to color represented as integer value. + * @param r red + * @param g green + * @param b blue + * @return + */ + fun RGBtoColor(r: Int, g: Int, b: Int): Int { + return RGBAtoColor(r, g, b, 100) + } + + /** + * Static method convert RGBA to color represented as integer value. + * @param r red + * @param g green + * @param b blue + * @param a alpha + * @return color-int (integer representation) + */ + fun RGBAtoColor(r: Int, g: Int, b: Int, a: Int): Int { + return Color.argb( + (255.0 * a / 100).roundToInt(), + r, g, b + ) + } + + /** + * Static method convert HSV to color represented as integer value. + * @param h hue + * @param s saturation + * @param v value + * @return color-int (integer representation) + */ + fun HSVtoColor(h: Int, s: Int, v: Int): Int { + return HSVAtoColor(h, s, v, 100) + } + + /** + * Static method convert HSVA to color represented as integer value. + * @param h hue + * @param s saturation + * @param v value + * @param a alpha + * @return color-int (integer representation) + */ + fun HSVAtoColor(h: Int, s: Int, v: Int, a: Int): Int { + val h2 = h / 360.0 + val s2 = s / 100.0 + val v2 = v / 100.0 + var r = 0.0 + var g = 0.0 + var b = 0.0 + if (s2 == 0.0) { + b = v2 + g = b + r = g + } else { + var i = (h2 * 6).toInt() + val f = h2 * 6 - i + val p = v2 * (1 - s2) + val q = v2 * (1 - f * s2) + val t = v2 * (1 - (1 - f) * s2) + i %= 6 + if (i == 0) { + r = v2 + g = t + b = p + } else if (i == 1) { + r = q + g = v2 + b = p + } else if (i == 2) { + r = p + g = v2 + b = t + } else if (i == 3) { + r = p + g = q + b = v2 + } else if (i == 4) { + r = t + g = p + b = v2 + } else if (i == 5) { + r = v2 + g = p + b = q + } + } + return Color.argb( + (255.0 * a / 100).roundToInt(), + (r * 255).roundToInt(), + (g * 255).roundToInt(), + (b * 255).roundToInt() + ) + } + + /** + * Static method convert HSL to color represented as integer value. + * @param h hue + * @param s saturation + * @param l lightness + * @return color-int (integer representation) + */ + fun HSLtoColor(h: Int, s: Int, l: Int): Int { + return HSLAtoColor(h, s, l, 100) + } + + /** + * Static method convert HSLA to color represented as integer value. + * @param h hue + * @param s saturation + * @param l lightness + * @param a alpha + * @return color-int (integer representation) + */ + fun HSLAtoColor(h: Int, s: Int, l: Int, a: Int): Int { + val h2 = h / 360.0 + val s2 = s / 100.0 + val l2 = l / 100.0 + val r: Double + val g: Double + val b: Double + if (s2 == 0.0) { + b = l2 + g = b + r = g // achromatic + } else { + val q = if (l2 < 0.5) l2 * (1 + s2) else l2 + s2 - l2 * s2 + val p = 2 * l2 - q + r = HUEtoRGB(p, q, h2 + 1.0 / 3.0) + g = HUEtoRGB(p, q, h2) + b = HUEtoRGB(p, q, h2 - 1.0 / 3.0) + } + return Color.argb( + (255.0 * a / 100).roundToInt(), + (r * 255).roundToInt(), + (g * 255).roundToInt(), + (b * 255).roundToInt() + ) + } + + /** + * Static method convert HWB to color represented as integer value. + * @param h hue + * @param w white + * @param b black + * @return color-int (integer representation) + */ + fun HWBtoColor(h: Int, w: Int, b: Int): Int { + return HWBAtoColor(h, w, b, 100) + } + + /** + * Static method convert HWBA to color represented as integer value. + * @param h hue + * @param w white + * @param b black + * @param a alpha + * @return color-int (integer representation) + */ + fun HWBAtoColor(h: Int, w: Int, b: Int, a: Int): Int { + var w2 = w / 100.0 + var b2 = b / 100.0 + + // get base color + val rgb = HSLtoColor(h, 100, 50) + var r = Color.red(rgb) / 255.0 + var g = Color.green(rgb) / 255.0 + var bl = Color.blue(rgb) / 255.0 + val tot = w2 + b2 + if (tot > 1) { + w2 /= tot + b2 /= tot + } + r *= 1 - w2 - b2 + r += w2 + g *= 1 - w2 - b2 + g += w2 + bl *= 1 - w2 - b2 + bl += w2 + + return Color.argb( + (255.0 * a / 100).roundToInt(), + (r * 255).roundToInt(), + (g * 255).roundToInt(), + (bl * 255).roundToInt() + ) + } + + /** + * Static method convert CMYK to color represented as integer value. + * @param c cyan + * @param m magenta + * @param y yellow + * @param k black + * @return color-int (integer representation) + */ + fun CMYKtoColor(c: Int, m: Int, y: Int, k: Int): Int { + return CMYKAtoColor(c, m, y, k, 100) + } + + /** + * Static method convert CMYKA to color represented as integer value. + * @param c cyan + * @param m magenta + * @param y yellow + * @param k black + * @param a alpha + * @return color-int (integer representation) + */ + fun CMYKAtoColor(c: Int, m: Int, y: Int, k: Int, a: Int): Int { + val c2 = c / 100.0 + val m2 = m / 100.0 + val y2 = y / 100.0 + val k2 = k / 100.0 + val r = 1 - Math.min(1.0, c2 * (1 - k2) + k2) + val g = 1 - Math.min(1.0, m2 * (1 - k2) + k2) + val b = 1 - Math.min(1.0, y2 * (1 - k2) + k2) + return Color.argb( + (255.0 * a / 100).roundToInt(), + (r * 255).roundToInt(), + (g * 255).roundToInt(), + (b * 255).roundToInt() + ) + } + + /** + * Static method convert RGB to Hue represented as integer value. + * @param r red + * @param g green + * @param b blue + * @return hue value + */ + fun RGBtoH(r: Int, g: Int, b: Int): Int { + val r2 = r / 255.0 + val g2 = g / 255.0 + val b2 = b / 255.0 + val min = Math.min(Math.min(r2, g2), b2) + val max = Math.max(Math.max(r2, g2), b2) + val delta = max - min + var h = 0.0 + if (max != min) { + if (max == r2) { + h = (g2 - b2) / delta + if (g2 < b2) 6.0 else 0.0 + } else if (max == g2) { + h = (b2 - r2) / delta + 2.0 + } else if (max == b2) { + h = (r2 - g2) / delta + 4.0 + } + h /= 6.0 + } + + // normalize + return (h * 360).roundToInt() + } + } +} \ No newline at end of file diff --git a/colorpicker/src/main/java/com/slaviboy/colorpicker/models/CMYK.kt b/colorpicker/src/main/java/com/slaviboy/colorpicker/models/CMYK.kt new file mode 100644 index 0000000..cc6da99 --- /dev/null +++ b/colorpicker/src/main/java/com/slaviboy/colorpicker/models/CMYK.kt @@ -0,0 +1,168 @@ +package com.slaviboy.colorpicker.models + +// Copyright (C) 2020 Stanislav Georgiev +// https://github.com/slaviboy +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +/** + * Class that represents CMYK(CYAN, MAGENTA, YELLOW and BLACK) color model + * and hold individual value for given color. + * @param c cyan [0,100] + * @param m magenta [0,100] + * @param y yellow [0,100] + * @param k black [0,100] + */ +class CMYK( + var c: Int = 0, + var m: Int = 0, + var y: Int = 0, + var k: Int = 0 +) { + + var cSuffix = C_SUFFIX + var mSuffix = M_SUFFIX + var ySuffix = Y_SUFFIX + var kSuffix = K_SUFFIX + + /** + * Constructor that set values using CMYK object. + * @param cmyk - existing cmyk object + */ + constructor(cmyk: CMYK) : this(cmyk.c, cmyk.m, cmyk.y, cmyk.k) + + /** + * Public setter that sets initial values using CMYK object. + * @param cmyk - existing cmyk object + */ + fun setCMYK(cmyk: CMYK) { + c = cmyk.c + m = cmyk.m + y = cmyk.y + k = cmyk.k + } + + /** + * Public setter that sets CMYK object using individual values. + * @param c - cyan + * @param m - magenta + * @param y - yellow + * @param k - black + */ + fun setCMYK(c: Int, m: Int, y: Int, k: Int) { + this.c = c + this.m = m + this.y = y + this.k = k + } + + /** + * Set suffix for each value, separately. + * @param cSuffix - cyan suffix + * @param mSuffix - magenta suffix + * @param ySuffix - yellow suffix + * @param kSuffix - black suffix + */ + fun setSuffix( + cSuffix: String, + mSuffix: String, + ySuffix: String, + kSuffix: String + ) { + this.cSuffix = cSuffix + this.mSuffix = mSuffix + this.ySuffix = ySuffix + this.kSuffix = kSuffix + } + + /** + * Get CMYK values as an array. + * @return array with corresponding values + */ + fun getArray(): IntArray { + return intArrayOf(c, m, y, k) + } + + override fun toString(): String { + return getString() + } + + /** + * Return string, with all corresponding value, where you can specify whether or not to + * use suffix after each value. + * @param withSuffix - flag showing if suffix should be used + */ + fun getString(withSuffix: Boolean = true): String { + return if (withSuffix) { + "$c$cSuffix$m$mSuffix$y$ySuffix$k$kSuffix" + } else { + "$c $m $y $k" + } + } + + companion object { + + // max and min range values for each variable + const val C_MIN = 0 + const val C_MAX = 100 + const val M_MIN = 0 + const val M_MAX = 100 + const val Y_MIN = 0 + const val Y_MAX = 100 + const val K_MIN = 0 + const val K_MAX = 100 + + // default suffix for each variable, used when returning string + const val C_SUFFIX = "%, " + const val M_SUFFIX = "%, " + const val Y_SUFFIX = "%, " + const val K_SUFFIX = "%" + + /** + * Check if cyan value is in range [0,100]. + * @param c - cyan value to be checked + * @return boolean if value is in range + */ + fun inRangeC(c: Int): Boolean { + return c >= C_MIN && c <= C_MAX + } + + /** + * Check if magenta value is in range [0,100]. + * @param m - magenta value to be checked + * @return boolean if value is in range + */ + fun inRangeM(m: Int): Boolean { + return m >= M_MIN && m <= M_MAX + } + + /** + * Check if yellow value is in range [0,100]. + * @param y - yellow value to be checked + * @return boolean if value is in range + */ + fun inRangeY(y: Int): Boolean { + return y >= Y_MIN && y <= Y_MAX + } + + /** + * Check if black value is in range [0,100]. + * @param k - black value to be checked + * @return boolean if value is in range + */ + fun inRangeK(k: Int): Boolean { + return k >= K_MIN && k <= K_MAX + } + } +} \ No newline at end of file diff --git a/colorpicker/src/main/java/com/slaviboy/colorpicker/models/HEX.kt b/colorpicker/src/main/java/com/slaviboy/colorpicker/models/HEX.kt new file mode 100644 index 0000000..c517656 --- /dev/null +++ b/colorpicker/src/main/java/com/slaviboy/colorpicker/models/HEX.kt @@ -0,0 +1,72 @@ +package com.slaviboy.colorpicker.models + +import android.graphics.Color + +// Copyright (C) 2020 Stanislav Georgiev +// https://github.com/slaviboy +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +/** + * Class that hold HEX(HEXADECIMAL) representation for a given color, both as hex string + * and as integer representation for the current color. + * + * @param hexString hex string in format #RRGGBB + */ +class HEX(var hexString: String = "#000000") { + + var hex = Color.parseColor(hexString) + + /** + * Constructor that set values using hex object. + * @param hex - existing hexadecimal object + */ + constructor(hex: HEX) : this(hex.hexString) + + /** + * Set hex values using existing hex object. + * @param hex + */ + fun setHEX(hex: HEX) { + this.hex = hex.hex + this.hexString = hex.hexString + } + + /** + * Set hex values using given hexadecimal string. + * @param hex - hex string in formats: #RRGGBB + */ + fun setHEX(hex: String) { + this.hex = Color.parseColor(hex) // get integer representation + this.hexString = hex + } + + override fun toString(): String { + return hexString + } + + companion object { + + /** + * Check if hex string values is correct, by removing all non-hexadecimal character and + * check for the new string length. + * @param hex - hex string to be checked + * @return - boolean flag showing if hex string is correct + */ + fun isHEX(hex: String): Boolean { + val newHEX = hex.replace("[^a-f0-9A-F]+".toRegex(), "") + return newHEX.length == 6 + } + } +} \ No newline at end of file diff --git a/colorpicker/src/main/java/com/slaviboy/colorpicker/models/HSL.kt b/colorpicker/src/main/java/com/slaviboy/colorpicker/models/HSL.kt new file mode 100644 index 0000000..1931f87 --- /dev/null +++ b/colorpicker/src/main/java/com/slaviboy/colorpicker/models/HSL.kt @@ -0,0 +1,147 @@ +package com.slaviboy.colorpicker.models + +// Copyright (C) 2020 Stanislav Georgiev +// https://github.com/slaviboy +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +/** + * Class that represents HSL(HUE, SATURATION and LIGHTNESS) color model + * and hold individual value for given color. + * @param h hue [0,360] + * @param s saturation [0,100] + * @param l lightness [0,100] + */ +class HSL( + var h: Int = 0, + var s: Int = 0, + var l: Int = 0 +) { + + var hSuffix = H_SUFFIX + var sSuffix = S_SUFFIX + var lSuffix = L_SUFFIX + + /** + * Constructor that set values using HSL object. + * @param hsl - hsl object + */ + constructor(hsl: HSL) : this(hsl.h, hsl.s, hsl.l) + + /** + * Public setter that sets initial values using HSL object. + * @param hsl - existing hsl object + */ + fun setHSL(hsl: HSL) { + h = hsl.h + s = hsl.s + l = hsl.l + } + + /** + * Public setter that sets HSL object using individual values. + * @param h - hue + * @param s - saturation + * @param l - lightness + */ + fun setHSL(h: Int, s: Int, l: Int) { + this.h = h + this.s = s + this.l = l + } + + /** + * Set suffix for each value, separately. + * @param hSuffix - hue suffix + * @param sSuffix - saturation suffix + * @param lSuffix - lightness suffix + */ + fun setSuffix( + hSuffix: String, + sSuffix: String, + lSuffix: String + ) { + this.hSuffix = hSuffix + this.sSuffix = sSuffix + this.lSuffix = lSuffix + } + + /** + * Get HSL values as an array. + * @return array with corresponding values + */ + fun getArray(): IntArray { + return intArrayOf(h, s, l) + } + + override fun toString(): String { + return getString() + } + + /** + * Return string, with all corresponding value, where you can specify whether or not to + * use suffix after each value. + * @param withSuffix - flag showing if suffix should be used + */ + fun getString(withSuffix: Boolean = true): String { + return if (withSuffix) { + "$h$hSuffix$s$sSuffix$l$lSuffix" + } else { + "$h $s $l" + } + } + + companion object { + + // max and min range values for each variable + const val H_MIN = 0 + const val H_MAX = 360 + const val S_MIN = 0 + const val S_MAX = 100 + const val L_MIN = 0 + const val L_MAX = 100 + + // default suffix for each variable, when returning string + const val H_SUFFIX = "°, " + const val S_SUFFIX = "%, " + const val L_SUFFIX = "%" + + /** + * Check if hue value is in range [0,360]. + * @param h - hue value to be checked + * @return boolean if value is in range + */ + fun inRangeH(h: Int): Boolean { + return h >= H_MIN && h <= H_MAX + } + + /** + * Check if saturation value is in range [0,100]. + * @param s - saturation value to be checked + * @return boolean if value is in range + */ + fun inRangeS(s: Int): Boolean { + return s >= S_MIN && s <= S_MAX + } + + /** + * Check if cyan value is in range [0,100]. + * @param l - lightness value to be checked + * @return boolean if value is in range + */ + fun inRangeL(l: Int): Boolean { + return l >= L_MIN && l <= L_MAX + } + } +} \ No newline at end of file diff --git a/colorpicker/src/main/java/com/slaviboy/colorpicker/models/HSV.kt b/colorpicker/src/main/java/com/slaviboy/colorpicker/models/HSV.kt new file mode 100644 index 0000000..669c140 --- /dev/null +++ b/colorpicker/src/main/java/com/slaviboy/colorpicker/models/HSV.kt @@ -0,0 +1,143 @@ +package com.slaviboy.colorpicker.models + +// Copyright (C) 2020 Stanislav Georgiev +// https://github.com/slaviboy +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +/** + * Class that represents HSV(HUE, SATURATION and VALUE) color model + * and hold individual value for given color. + * @param h hue [0,360] + * @param s saturation [0,100] + * @param v value [0,100] + */ +class HSV(var h: Int = 0, var s: Int = 0, var v: Int = 0) { + + var hSuffix = H_SUFFIX + var sSuffix = S_SUFFIX + var vSuffix = V_SUFFIX + + /** + * Constructor that set values using HSV object. + * @param hsv - hsv object + */ + constructor(hsv: HSV) : this(hsv.h, hsv.s, hsv.v) + + /** + * Public setter that sets initial values using HSV object. + * @param hsv - existing hsv object + */ + fun setHSV(hsv: HSV) { + h = hsv.h + s = hsv.s + v = hsv.v + } + + /** + * Public setter that sets HSV object using individual values. + * @param h - hue + * @param s - saturation + * @param v - value + */ + fun setHSV(h: Int, s: Int, v: Int) { + this.h = h + this.s = s + this.v = v + } + + /** + * Set suffix for each value, separately. + * @param hSuffix - hue suffix + * @param sSuffix - saturation suffix + * @param vSuffix - value suffix + */ + fun setSuffix( + hSuffix: String, + sSuffix: String, + vSuffix: String + ) { + this.hSuffix = hSuffix + this.sSuffix = sSuffix + this.vSuffix = vSuffix + } + + /** + * Get HSV values as an array. + * @return array with corresponding values + */ + fun getArray(): IntArray { + return intArrayOf(h, s, v) + } + + override fun toString(): String { + return getString() + } + + /** + * Return string, with all corresponding value, where you can specify whether or not to + * use suffix after each value. + * @param withSuffix - flag showing if suffix should be used + */ + fun getString(withSuffix: Boolean = true): String { + return if (withSuffix) { + "$h$hSuffix$s$sSuffix$v$vSuffix" + } else { + "$h $s $v" + } + } + + companion object { + + // max and min range values for each variable + const val H_MIN = 0 + const val H_MAX = 360 + const val S_MIN = 0 + const val S_MAX = 100 + const val V_MIN = 0 + const val V_MAX = 100 + + // default suffix for each variable, when returning string + const val H_SUFFIX = "°, " + const val S_SUFFIX = "%, " + const val V_SUFFIX = "%" + + /** + * Check if hue value is in range [0,360]. + * @param h - hue value to be checked + * @return boolean if value is in range + */ + fun inRangeH(h: Int): Boolean { + return h >= H_MIN && h <= H_MAX + } + + /** + * Check if saturation value is in range [0,100]. + * @param s - saturation value to be checked + * @return boolean if value is in range + */ + fun inRangeS(s: Int): Boolean { + return s >= S_MIN && s <= S_MAX + } + + /** + * Check if 'value' value is in range [0,100]. + * @param v - 'value' value to be checked + * @return boolean if value is in range + */ + fun inRangeV(v: Int): Boolean { + return v >= V_MIN && v <= V_MAX + } + } +} \ No newline at end of file diff --git a/colorpicker/src/main/java/com/slaviboy/colorpicker/models/HWB.kt b/colorpicker/src/main/java/com/slaviboy/colorpicker/models/HWB.kt new file mode 100644 index 0000000..da7b552 --- /dev/null +++ b/colorpicker/src/main/java/com/slaviboy/colorpicker/models/HWB.kt @@ -0,0 +1,143 @@ +package com.slaviboy.colorpicker.models + +// Copyright (C) 2020 Stanislav Georgiev +// https://github.com/slaviboy +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +/** + * Class that represents HWB(HUE, WHITE and BLACK) color model + * and hold individual value for given color. + * @param h hue [0,360] + * @param w white [0,100] + * @param b black [0,100] + */ +class HWB(var h: Int = 0, var w: Int = 0, var b: Int = 0) { + + var hSuffix = H_SUFFIX + var wSuffix = W_SUFFIX + var bSuffix = B_SUFFIX + + /** + * Constructor that set values using HWB object. + * @param hwb - hwb object + */ + constructor(hwb: HWB) : this(hwb.h, hwb.w, hwb.b) + + /** + * Public setter that sets initial values using HWB object. + * @param hwb - existing hwb object + */ + fun setHWB(hwb: HWB) { + h = hwb.h + w = hwb.w + b = hwb.b + } + + /** + * Public setter that sets HWB object using individual values. + * @param h - hue + * @param w - white + * @param b - black + */ + fun setHWB(h: Int, w: Int, b: Int) { + this.h = h + this.w = w + this.b = b + } + + /** + * Set suffix for each value, separately. + * @param hSuffix - hue suffix + * @param wSuffix - white suffix + * @param bSuffix - black suffix + */ + fun setSuffix( + hSuffix: String, + wSuffix: String, + bSuffix: String + ) { + this.hSuffix = hSuffix + this.wSuffix = wSuffix + this.bSuffix = bSuffix + } + + /** + * Get HWB values as an array. + * @return array with corresponding values + */ + fun getArray(): IntArray { + return intArrayOf(h, w, b) + } + + override fun toString(): String { + return getString() + } + + /** + * Return string, with all corresponding value, where you can specify whether or not to + * use suffix after each value. + * @param withSuffix - flag showing if suffix should be used + */ + fun getString(withSuffix: Boolean = true): String { + return if (withSuffix) { + "$h$hSuffix$w$wSuffix$b$bSuffix" + } else { + "$h $w $b" + } + } + + companion object { + + // max and min range values for each variable + const val H_MIN = 0 + const val H_MAX = 360 + const val W_MIN = 0 + const val W_MAX = 100 + const val B_MIN = 0 + const val B_MAX = 100 + + // default suffix for each variable, when returning string + const val H_SUFFIX = "°, " + const val W_SUFFIX = ", " + const val B_SUFFIX = "" + + /** + * Check if hue value is in range [0,360]. + * @param h - hue value to be checked + * @return boolean if value is in range + */ + fun inRangeH(h: Int): Boolean { + return h >= H_MIN && h <= H_MAX + } + + /** + * Check if white value is in range [0,100]. + * @param w - white value to be checked + * @return boolean if value is in range + */ + fun inRangeW(w: Int): Boolean { + return w >= W_MIN && w <= W_MAX + } + + /** + * Check if black value is in range [0,100]. + * @param b - black value to be checked + * @return boolean if value is in range + */ + fun inRangeB(b: Int): Boolean { + return b >= B_MIN && b <= B_MAX + } + } +} \ No newline at end of file diff --git a/colorpicker/src/main/java/com/slaviboy/colorpicker/models/RGBA.kt b/colorpicker/src/main/java/com/slaviboy/colorpicker/models/RGBA.kt new file mode 100644 index 0000000..14e308b --- /dev/null +++ b/colorpicker/src/main/java/com/slaviboy/colorpicker/models/RGBA.kt @@ -0,0 +1,181 @@ +package com.slaviboy.colorpicker.models + +// Copyright (C) 2020 Stanislav Georgiev +// https://github.com/slaviboy +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +/** + * Class that represents RGBA(RED, GREEN, BLUE and ALPHA) color model + * and hold individual value for given color. This is the only model that + * holds the alpha value, so when needed its is get from here. + * @param r red [0,255] + * @param g green [0,255] + * @param b blue [0,255] + * @param a alpha [0,100] + */ +class RGBA(var r: Int = 0, var g: Int = 0, var b: Int = 0, var a: Int = 100) { + + var rSuffix = R_SUFFIX + var gSuffix = G_SUFFIX + var bSuffix = B_SUFFIX + var aSuffix = A_SUFFIX + + /** + * Constructor that set values using RGBA object. + * @param rgba - rgba object + */ + constructor(rgba: RGBA) : this(rgba.r, rgba.g, rgba.b, rgba.a) + + /** + * Public setter that sets initial values using RGBA object. + * @param rgba - existing rgba object + */ + fun setRGBA(rgba: RGBA) { + r = rgba.r + g = rgba.g + b = rgba.b + a = rgba.a + } + + /** + * Public setter that sets RGBA object using individual values. + * @param r - red + * @param g - green + * @param b - blue + */ + fun setRGBA(r: Int, g: Int, b: Int) { + setRGBA(r, g, b, a) + } + + /** + * Public setter that sets RGBA object using individual values. + * @param r - red + * @param g - green + * @param b - blue + * @param a - alpha + */ + fun setRGBA(r: Int, g: Int, b: Int, a: Int) { + this.r = r + this.g = g + this.b = b + this.a = a + } + + /** + * Set suffix for each value, separately. + * @param rSuffix - red suffix + * @param gSuffix - green suffix + * @param bSuffix - blue suffix + * @param aSuffix - alpha suffix + */ + fun setSuffix( + rSuffix: String, + gSuffix: String, + bSuffix: String, + aSuffix: String = "" + ) { + setSuffix(rSuffix, gSuffix, bSuffix) + this.aSuffix = aSuffix + } + + /** + * Get RGBA values as an array. + * @return array with corresponding values + */ + fun getArray(): IntArray { + return intArrayOf(r, g, b, a) + } + + override fun toString(): String { + return getString() + } + + /** + * Return string, with all corresponding value, where you can specify whether or not to + * use suffix after each value. + * @param includeAlpha - if alpha value should be included in the string + * @param withSuffix - flag showing if suffix should be used + */ + fun getString(includeAlpha: Boolean = true, withSuffix: Boolean = true): String { + return if (includeAlpha) { + if (withSuffix) { + "$r$rSuffix$g$gSuffix$b$bSuffix$a$aSuffix" + } else { + "$r $g $b $a" + } + } else { + if (withSuffix) { + "$r$rSuffix$g$gSuffix$b" + } else { + "$r $g $b" + } + } + } + + companion object { + + // max and min values for each variable + const val R_MIN = 0 + const val R_MAX = 255 + const val G_MIN = 0 + const val G_MAX = 255 + const val B_MIN = 0 + const val B_MAX = 255 + const val A_MIN = 0 + const val A_MAX = 100 + + // default suffix for each variable, when returning string + const val R_SUFFIX = ", " + const val G_SUFFIX = ", " + const val B_SUFFIX = ", " + const val A_SUFFIX = "" + + /** + * Check if red value is in range [0,255]. + * @param r - red value to be checked + * @return boolean if value is in range + */ + fun inRangeR(r: Int): Boolean { + return r >= R_MIN && r <= R_MAX + } + + /** + * Check if green value is in range [0,255]. + * @param g - green value to be checked + * @return boolean if value is in range + */ + fun inRangeG(g: Int): Boolean { + return g >= G_MIN && g <= G_MAX + } + + /** + * Check if blue value is in range [0,255]. + * @param b - blue value to be checked + * @return boolean if value is in range + */ + fun inRangeB(b: Int): Boolean { + return b >= B_MIN && b <= B_MAX + } + + /** + * Check if alpha value is in range [0,100]. + * @param a - alpha value to be checked + * @return boolean if value is in range + */ + fun inRangeA(a: Int): Boolean { + return a >= A_MIN && a <= A_MAX + } + } +} \ No newline at end of file diff --git a/colorpicker/src/main/java/com/slaviboy/colorpicker/pickers/ColorPicker.kt b/colorpicker/src/main/java/com/slaviboy/colorpicker/pickers/ColorPicker.kt new file mode 100644 index 0000000..44b4330 --- /dev/null +++ b/colorpicker/src/main/java/com/slaviboy/colorpicker/pickers/ColorPicker.kt @@ -0,0 +1,93 @@ +package com.slaviboy.colorpicker.pickers + +import android.content.Context +import android.util.AttributeSet +import android.view.LayoutInflater +import android.view.View +import android.view.ViewGroup +import android.widget.TextView +import androidx.constraintlayout.widget.ConstraintLayout +import com.slaviboy.colorpicker.Updater +import com.slaviboy.colorpicker.window.Base + +// Copyright (C) 2020 Stanislav Georgiev +// https://github.com/slaviboy +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +/** + * ColorPicker class that can be extended and used to create custom color pickers. + * By creating xml, files and setting color windows, and text views you can create + * customizable color pickers. + */ +open class ColorPicker : ConstraintLayout { + + constructor(context: Context?) : super(context) + constructor(context: Context?, attrs: AttributeSet?) : super(context, attrs) + constructor(context: Context?, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr) + + private lateinit var updater: Updater // update object, used to update all color picker elements + private lateinit var colorWindows: MutableList // color windows that are attached to the layout + private lateinit var textViews: MutableList // text views that are attached to the layout + + /** + * Set up color windows and text views, by getting them from the xml layout + * that is being inflated. And then attach them if updater is already set. + * @param context context object + * @param layoutId id of the layout that will be inflated + */ + protected fun setViews(context: Context, layoutId: Int) { + + val layoutInflater = context + .getSystemService(Context.LAYOUT_INFLATER_SERVICE) as LayoutInflater + val parentView = layoutInflater.inflate(layoutId, this, true) as ViewGroup + + // separate the text views and the color windows + textViews = ArrayList() + colorWindows = ArrayList() + for (i in 0 until parentView.childCount) { + val childView: View = parentView.getChildAt(i) + if (childView is Base) { + colorWindows.add(childView as Base) + } else if (childView is TextView && Updater.getType(childView) != Updater.TYPE_NONE) { + // make sure the text has tag attach to it and text type is defined before attachment + textViews.add(childView) + } + } + + if (::updater.isInitialized) { + attach(updater) + } + } + + /** + * Attach color windows and text views to, given updater object, that will keep track + * of the elements that are attached and will respond to any changes, and update the + * other components. So if user changes the selector of a color window, the other color + * windows and text views will change responsively. + * @param updater updater object responsible for updating all components(elements) responsively + */ + fun attach(updater: Updater) { + this.updater = updater + + // attach color windows and text views to the updater + if (::colorWindows.isInitialized && colorWindows.size > 0) { + updater.attachColorWindows(colorWindows) + } + + if (::textViews.isInitialized && textViews.size > 0) { + updater.attachTextViews(textViews) + } + } +} \ No newline at end of file diff --git a/colorpicker/src/main/java/com/slaviboy/colorpicker/window/Base.kt b/colorpicker/src/main/java/com/slaviboy/colorpicker/window/Base.kt new file mode 100644 index 0000000..2f70951 --- /dev/null +++ b/colorpicker/src/main/java/com/slaviboy/colorpicker/window/Base.kt @@ -0,0 +1,388 @@ +package com.slaviboy.colorpicker.window + +import android.content.Context +import android.content.res.TypedArray +import android.graphics.* +import android.util.AttributeSet +import android.util.DisplayMetrics +import android.util.TypedValue +import android.view.MotionEvent +import android.view.View +import android.view.ViewTreeObserver +import android.view.ViewTreeObserver.OnPreDrawListener +import com.slaviboy.colorpicker.ColorHolder +import com.slaviboy.colorpicker.CornerRadius +import com.slaviboy.colorpicker.R +import com.slaviboy.colorpicker.converter.ColorConverter + +// Copyright (C) 2020 Stanislav Georgiev +// https://github.com/slaviboy +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +/** + * Base class, is abstract class that is extended by the other color windows. It contains properties + * that are used by the other color windows - Circular, Rectangular and Slider. It has some abstract + * methods that are common for all color window types, and need to be implemented if new type is created. + */ +abstract class Base : View { + + constructor(context: Context) : super(context) { + init(context, null) + } + + constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) { + init(context, attrs) + } + + constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr) { + init(context, attrs) + } + + protected var selectorStrokeWidth: Float // selector stroke width + protected var selectorRadius: Float // selector radius + protected var selectorColor: Int // selector color + protected var selectorExtraStrokeColor: Int // stroke color for the extra stroke surrounding the normal selector stroke + protected var selectorExtraStrokeWidth: Float // stroke width for the extra stroke surrounding the normal selector stroke + protected var isTouchDown: Boolean // flag showing whether the user finger is currently touching the color window + protected var borderStrokeWidth: Float // border stroke width + protected var borderColor: Int // border color + protected var isInit: Boolean // Flag showing whether the color window is initialized, and can be used. + protected var halfWidth: Float // canvas half width + protected var halfHeight: Float // canvas half height + protected var selectorX: Float // selector x coordinate + protected var selectorY: Float // selector y coordinate + protected lateinit var selectorPaint: Paint // selector paint + protected lateinit var baseLayer: Bitmap // bitmap for the base layer + protected lateinit var colorLayer: Bitmap // bitmap for the color layer + protected lateinit var layersPaint: Paint // paint object for the layers + protected lateinit var layersCanvas: Canvas // canvas object for the layers + protected lateinit var padding: RectF // padding for the color window, so that the selector is keep inside + lateinit var colorConverter: ColorConverter // the global color converter object, that converts from one color model to another + lateinit var colorHolder: ColorHolder // the global color holder object, holding base color and selected color + lateinit var onUpdateListener: OnUpdateListener // update listener that calls method when selector is moved + protected lateinit var clipPath: Path // color window path used for drawing the color window shape and clip the bitmaps + protected lateinit var bound: RectF // boundary for the color window shape + protected lateinit var displayMetrics: DisplayMetrics // used when getting the xml units as pixel, for - dp and sp conversions to px + protected lateinit var cornerRadius: CornerRadius // view corner radius + private lateinit var unitsString: Array // string array containing string unit values, from xml properties + + init { + + // set default values + selectorColor = 0 + borderColor = 0 + isTouchDown = false + isInit = false + halfWidth = 0f + halfHeight = 0f + selectorX = 0f + selectorY = 0f + borderStrokeWidth = 0f + selectorStrokeWidth = 0f + selectorRadius = 0f + selectorExtraStrokeColor = Color.BLACK + selectorExtraStrokeWidth = 9f + } + + private fun init(context: Context, attrs: AttributeSet?) { + + val typedArray: TypedArray = context.obtainStyledAttributes(attrs, R.styleable.Base) + + // get units as string, and after final measurement get the sizes in pixels + unitsString = arrayOf( + typedArray.getString(R.styleable.Base_selector_stroke_width) ?: "6px", + typedArray.getString(R.styleable.Base_selector_radius) ?: "10px", + typedArray.getString(R.styleable.Base_border_stroke_width) ?: "1px", + typedArray.getString(R.styleable.Base_corner_radius) ?: "5px", + typedArray.getString(R.styleable.Base_corner_radius_upper_left) ?: "0px", + typedArray.getString(R.styleable.Base_corner_radius_upper_right) ?: "0px", + typedArray.getString(R.styleable.Base_corner_radius_lower_left) ?: "0px", + typedArray.getString(R.styleable.Base_corner_radius_lower_right) ?: "0px" + ) + + // selector xml attributes + selectorColor = typedArray.getColor(R.styleable.Base_selector_color, Color.WHITE) + borderColor = typedArray.getColor(R.styleable.Base_border_color, Color.parseColor("#2f000000")) + typedArray.recycle() + + // get metrics used when converting dp and sp to px + displayMetrics = context.resources.displayMetrics + + // called before drawing to init some values that need view size + this.afterMeasured { + onInitBase() + update() + onRedraw() + } + } + + /** + * Get unit value in pixels, by passing unit string value, supported unit types are: + * dp, sp, px, vw(view width) and vh(view height) + * @param unitStr unit string + * @return unit value in pixels + */ + protected fun getUnit(unitStr: String?): Float { + if (unitStr == null) { + return 0.0f + } + + // get unit value + val value = unitStr + .substring(0, unitStr.length - 2) + .replace("[^0-9?!\\.]".toRegex(), "").toFloat() + + // get unit type(last two characters) from the string + val unit = unitStr.substring(unitStr.length - 2) + + // return the unit value as pixels + return when (unit) { + "dp" -> { + // dp to px + TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, value, displayMetrics) + } + "sp" -> { + // sp to px + TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, value, displayMetrics) + } + "px" -> { + value + } + "vw" -> { + // as percentage from view width (1.5 = 150%, 2 = 200% ...) + width * value + } + "vh" -> { + // as percentage from view height (1.5 = 150%, 2 = 200% ...) + height * value + } + else -> { + 0.0f + } + } + } + + /** + * Method called when final initialization is done, to get view size, set the bitmaps, set selector + * paint, paint and canvas for the layer are also set boolean variable isInit showing initialization + * is done. XML unit values are set after view width and height is needed to get unit values as pixels. + */ + private fun onInitBase() { + + // get view width and height + halfWidth = width / 2f + halfHeight = height / 2f + + // init attributes from xml + selectorStrokeWidth = getUnit(unitsString[0]) + selectorRadius = getUnit(unitsString[1]) + borderStrokeWidth = getUnit(unitsString[2]) + + // xml corner radius attribute + val cornerRadiusAll = getUnit(unitsString[3]) + var cornerRadiusUpperLeft = getUnit(unitsString[4]) + var cornerRadiusUpperRight = getUnit(unitsString[5]) + var cornerRadiusLowerLeft = getUnit(unitsString[6]) + var cornerRadiusLowerRight = getUnit(unitsString[7]) + + // set corner radii for each corner + if (cornerRadiusUpperLeft == 0f) { + cornerRadiusUpperLeft = cornerRadiusAll + } + if (cornerRadiusUpperRight == 0f && cornerRadiusLowerRight == 0f) { + cornerRadiusUpperRight = cornerRadiusAll + } + if (cornerRadiusLowerLeft == 0f) { + cornerRadiusLowerLeft = cornerRadiusAll + } + if (cornerRadiusLowerRight == 0f) { + cornerRadiusLowerRight = cornerRadiusAll + } + + cornerRadius = CornerRadius( + cornerRadiusUpperLeft, + cornerRadiusUpperRight, + cornerRadiusLowerLeft, + cornerRadiusLowerRight + ) + + // get the padding for the selector and set for all sides + val paddingAll = Math.max(selectorStrokeWidth / 2f + selectorExtraStrokeWidth / 2f + selectorRadius, borderStrokeWidth / 2f) + padding = RectF(paddingAll, paddingAll, paddingAll, paddingAll) + + // init bitmaps + baseLayer = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888) + colorLayer = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888) + + // set selector paint + selectorPaint = Paint().apply { + strokeWidth = selectorStrokeWidth + color = selectorColor + style = Paint.Style.STROKE + isAntiAlias = true + } + + // init temp paint + layersPaint = Paint().apply { + isAntiAlias = true + } + + // init temp canvas + layersCanvas = Canvas(baseLayer) + isInit = true + onInit() + } + + fun isOnUpdateListenerInitialised(): Boolean { + return ::onUpdateListener.isInitialized + } + + /** + * Method called when user moves selector to new position corresponding to current + * finger position on view. Used to change selector position and update ranges. + * @param x x coordinates + * @param y y coordinates + */ + protected abstract fun onMove(x: Float, y: Float) + + /** + * Method called on initialization, after the final measurement is made. Used by color windows + * to set the base layer bitmap and cached it. That way it is faster for redrawing the canvas. + */ + protected abstract fun onInit() + + /** + * Method that is called when view redrawing is need, usually when the base color from the color + * converter object is changed and colorLayer bitmap need to be redrawn. + */ + protected abstract fun onRedraw() + + /** + * Public method used to update selector position using current selected color, from + * the color converter object. And then redraw the view. + */ + abstract fun update() + + /** + * Public method used in some color windows, after base color is changed, to update the + * bitmaps and then redraw the view. + */ + abstract fun redraw() + + /** + * Method that draws border for the color window usually for better user experience + * since the color window look nicer with dark semi-transparent border. Border color + * and width(thickness) can be set using the border properties. + */ + protected open fun drawBorder(canvas: Canvas) { + if (!::clipPath.isInitialized) { + return + } + + // draw border stroke + layersPaint.apply { + shader = null + color = borderColor + strokeWidth = borderStrokeWidth + style = Paint.Style.STROKE + } + canvas.drawPath(clipPath, layersPaint) + } + + /** + * Method that draws the selector on given canvas, method can be override by successor classes + * and that way set different selector fill styles. Default method is drawing only circle stroke. + * @param canvas canvas where the selector will be written + */ + protected open fun drawSelector(canvas: Canvas) { + + selectorPaint.alpha = 255 + selectorPaint.style = Paint.Style.STROKE + + // draw the extras stroke, surrounding the original stroke + selectorPaint.color = selectorExtraStrokeColor + selectorPaint.strokeWidth = selectorExtraStrokeWidth + val halfStrokeWidth = selectorStrokeWidth / 2f + canvas.drawCircle(selectorX, selectorY, selectorRadius + halfStrokeWidth, selectorPaint) + canvas.drawCircle(selectorX, selectorY, selectorRadius - halfStrokeWidth, selectorPaint) + + // draw the original stoke + selectorPaint.color = selectorColor + selectorPaint.strokeWidth = selectorStrokeWidth + canvas.drawCircle(selectorX, selectorY, selectorRadius, selectorPaint) + } + + override fun onTouchEvent(event: MotionEvent): Boolean { + val x = event.x + val y = event.y + when (event.action) { + MotionEvent.ACTION_DOWN -> { + isTouchDown = true + onMove(x, y) + } + MotionEvent.ACTION_MOVE -> { + onMove(x, y) + } + MotionEvent.ACTION_UP -> { + isTouchDown = false + } + } + return true + } + + protected override fun onDraw(canvas: Canvas) { + + // clear background + canvas.drawColor(Color.TRANSPARENT) + + // draw the cached background bitmap + canvas.drawBitmap(colorLayer, 0f, 0f, null) + + // draw the border + drawBorder(canvas) + + // draw the selector + drawSelector(canvas) + } + + interface OnUpdateListener { + + /** + * Method is called when the color window is updated by the user(with the finger), + * that means the selector is moved. + * @param colorWindow showing from which color window the method is called + */ + fun onUpdate(colorWindow: Base) + } + + companion object { + + /** + * Inline function that is called, when the final measurement is made and + * the view is about to be draw. + */ + inline fun View.afterMeasured(crossinline function: View.() -> Unit) { + viewTreeObserver.addOnGlobalLayoutListener(object : + ViewTreeObserver.OnGlobalLayoutListener { + override fun onGlobalLayout() { + if (measuredWidth > 0 && measuredHeight > 0) { + viewTreeObserver.removeOnGlobalLayoutListener(this) + function() + } + } + }) + } + } +} diff --git a/colorpicker/src/main/java/com/slaviboy/colorpicker/window/Circular.kt b/colorpicker/src/main/java/com/slaviboy/colorpicker/window/Circular.kt new file mode 100644 index 0000000..99d4b02 --- /dev/null +++ b/colorpicker/src/main/java/com/slaviboy/colorpicker/window/Circular.kt @@ -0,0 +1,220 @@ +package com.slaviboy.colorpicker.window + +import android.content.Context +import android.content.res.TypedArray +import android.graphics.Canvas +import android.graphics.Paint +import android.graphics.PointF +import android.util.AttributeSet +import com.slaviboy.colorpicker.R +import com.slaviboy.colorpicker.Range +import kotlin.math.atan2 +import kotlin.math.cos +import kotlin.math.sin +import kotlin.math.sqrt + +// Copyright (C) 2020 Stanislav Georgiev +// https://github.com/slaviboy +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +/** + * Circular class represents a circular color window model, the selector follows a circular path by changing the + * view containing this model set the initial circle radius. The radius matches half of the minimum side, so if + * width is bigger than height that means the radius is half of the height. + */ +open class Circular : Base { + + constructor(context: Context) : super(context) { + init(context, null) + } + + constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) { + init(context, null) + } + + constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr) { + init(context, null) + } + + protected var angle: Float // degree between a line from center to current selector position and the horizontal line passing from the center + protected var distance: Float // distance between the circle center and current selector position + protected var radius: Float // show current circle radius it matches half the minimum from the two sides: Min(width/2, height/2) minus the stroke width + lateinit var distanceRange: Range // range corresponding for the distance + lateinit var angleRange: Range // range corresponding for the angle + + init { + angle = 0f + distance = 0f + radius = 0f + } + + /** + * Method called to get the xml attribute values. + * @param context context + * @param attrs attribute set + */ + private fun init(context: Context, attrs: AttributeSet?) { + + val typedArray: TypedArray = context.obtainStyledAttributes(attrs, R.styleable.Circular) + + // xml ranges + val distanceRangeLower = typedArray.getFloat(R.styleable.Circular_distance_range_lower, 0f) + val distanceRangeUpper = typedArray.getFloat(R.styleable.Circular_distance_range_upper, 100f) + val angleRangeLower = typedArray.getFloat(R.styleable.Circular_angle_range_lower, 0f) + val angleRangeUpper = typedArray.getFloat(R.styleable.Circular_angle_range_upper, 100f) + + distanceRange = Range(distanceRangeLower, distanceRangeUpper) + angleRange = Range(angleRangeLower, angleRangeUpper) + + typedArray.recycle() + } + + override fun onInit() {} + override fun onRedraw() { + invalidate() + } + + + fun distanceBetweenTwoPoints(x0: Float, y0: Float, x1: Float, y1: Float): Float { + val dX = (x0 - x1) + val dY = (y0 - y1) + return sqrt(dX * dX + dY * dY.toDouble()).toFloat() + } + + override fun onMove(x: Float, y: Float) { + + val centerX = halfWidth + val centerY = halfHeight + + // get degree [0, 360] + val degree = angle(centerX, centerY, x, y).toFloat() + + // get distance from the center to the selector + var dist = distanceBetweenTwoPoints(x, y, centerX, centerY) + + // limit selector position to circle bound + if (dist >= radius) { + val ratio = radius / dist + selectorX = ((1f - ratio) * centerX + ratio * x) + selectorY = ((1f - ratio) * centerY + ratio * y) + dist = radius + } else { + selectorX = x + selectorY = y + } + + angle = degree + distance = dist + distanceRange.setCurrent(radius, dist) + angleRange.setCurrent(360f, angle) + + // call update if listener exist + if (isOnUpdateListenerInitialised()) { + onUpdateListener.onUpdate(this) + } + invalidate() + } + + /** + * Static method that return new coordinates of a point rotated around center with given degree. + * @param cx center pivot point x coordinate + * @param cy center pivot point y coordinate + * @param x rotary point x coordinate + * @param y rotary point y coordinate + * @param angle rotational angle + * @return new point position for the rotated points + */ + protected fun rotatePoint(cx: Float, cy: Float, x: Float, y: Float, angle: Double): PointF { + val radians = Math.PI / 180.0 * angle + val cos = cos(radians).toFloat() + val sin = sin(radians).toFloat() + return PointF( + (cos * (x - cx) + sin * (y - cy) + cx), + (cos * (y - cy) - sin * (x - cx) + cy) + ) + } + + /** + * Static method that returns the coordinates of a point that is distant from the start point, + * and lies on a line between the start and end points. + * @param startX start point x coordinate + * @param startY start point y coordinate + * @param endX end point x coordinate + * @param endY end point y coordinate + * @param distance distance between the start point and the returned point + * @return coordinate of a point distant from the start point to a given distance + */ + protected fun distantPoint(startX: Float, startY: Float, endX: Float, endY: Float, distance: Float): PointF { + val xDist = endX - startX + val yDist = endY - startY + val dist = sqrt(xDist * xDist + yDist * yDist.toDouble()) + val fractionOfTotal = distance / dist.toFloat() + return PointF( + startX + xDist * fractionOfTotal, + startY + yDist * fractionOfTotal + ) + } + + override fun drawSelector(canvas: Canvas) { + + // set fill color + val fillColor = colorHolder.selectedColor + selectorPaint.color = fillColor + selectorPaint.style = Paint.Style.FILL + canvas.drawCircle(selectorX, selectorY, selectorRadius, selectorPaint) + + // restore stroke color before calling super + selectorPaint.color = selectorColor + selectorPaint.style = Paint.Style.STROKE + super.drawSelector(canvas) + } + + override fun drawBorder(canvas: Canvas) { + + // draw border stroke + layersPaint.apply { + shader = null + color = borderColor + strokeWidth = borderStrokeWidth + style = Paint.Style.STROKE + } + + canvas.drawCircle(halfWidth, halfHeight, radius + 1, layersPaint) + } + + override fun update() {} + override fun redraw() { + onRedraw() + } + + companion object { + + /** + * Static method that return the angle between a center point and a rotary point. + * @param cx center point x coordinate + * @param cy center point y coordinate + * @param x rotary point x coordinate + * @param y rotary point y coordinate + * @return angle between the line from the center point to the rotary point and the horizontal line passing through the center + */ + protected fun angle(cx: Float, cy: Float, x: Float, y: Float): Double { + val dy = y - cy + val dx = x - cx + var theta = atan2(dy.toDouble(), dx.toDouble()) // range (-PI, PI] + theta *= 180.0 / Math.PI // radians to degrees, range (-180, 180] + return if (theta < 0.0) 360.0 + theta else theta // return in range [0, 360) + } + } +} \ No newline at end of file diff --git a/colorpicker/src/main/java/com/slaviboy/colorpicker/window/Rectangular.kt b/colorpicker/src/main/java/com/slaviboy/colorpicker/window/Rectangular.kt new file mode 100644 index 0000000..84f7741 --- /dev/null +++ b/colorpicker/src/main/java/com/slaviboy/colorpicker/window/Rectangular.kt @@ -0,0 +1,177 @@ +package com.slaviboy.colorpicker.window + +import android.content.Context +import android.content.res.TypedArray +import android.graphics.Canvas +import android.graphics.Paint +import android.graphics.Path +import android.graphics.RectF +import android.util.AttributeSet +import com.slaviboy.colorpicker.CornerRadius +import com.slaviboy.colorpicker.R +import com.slaviboy.colorpicker.Range + +// Copyright (C) 2020 Stanislav Georgiev +// https://github.com/slaviboy +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +/** + * Rectangular class represent a rectangular color window model, as the selector follows a rectangular + * path. The model is based on 2D(Two Dimensional) color window, that means it contains two ranges for + * each dimension, horizontal for X-coordinates and vertical for Y-coordinates. + */ +open class Rectangular : Base { + constructor(context: Context) : super(context) { + init(context, null) + } + + constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) { + init(context, attrs) + } + + constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr) { + init(context, attrs) + } + + lateinit var verticalRange: Range // vertical direction values range + lateinit var horizontalRange: Range // horizontal direction values range + + /** + * Method called to get the xml attribute values. + * @param context context + * @param attrs attribute set + */ + private fun init(context: Context, attrs: AttributeSet?) { + + val typedArray: TypedArray = context.obtainStyledAttributes(attrs, R.styleable.Rectangular) + + // xml ranges + val verticalRangeLower = typedArray.getFloat(R.styleable.Rectangular_vertical_range_lower, 0f) + val verticalRangeUpper = typedArray.getFloat(R.styleable.Rectangular_vertical_range_upper, 100f) + val horizontalRangeLower = typedArray.getFloat(R.styleable.Rectangular_horizontal_range_lower, 0f) + val horizontalRangeUpper = typedArray.getFloat(R.styleable.Rectangular_horizontal_range_upper, 100f) + + verticalRange = Range(verticalRangeLower, verticalRangeUpper) + horizontalRange = Range(horizontalRangeLower, horizontalRangeUpper) + + typedArray.recycle() + } + + override fun onInit() { + + // set bound and clip path + bound = RectF(padding.left, padding.top, width - padding.right, height - padding.bottom) + clipPath = roundRect(bound.left, bound.top, bound.width(), bound.height(), cornerRadius) + } + + override fun onRedraw() { + + // redraw view + invalidate() + } + + override fun onMove(x: Float, y: Float) { + + var x = x + var y = y + + // make sure selector does not pass the canvas boundary + if (x < padding.left) x = padding.left else if (x >= width - padding.right) x = width - 1f - padding.right + if (y < padding.top) y = padding.top else if (y >= height - padding.bottom) y = height - 1f - padding.bottom + + // set new selector position + selectorX = x + selectorY = y + + // set current horizontal and vertical range values + verticalRange.setCurrent( + height - 1f - padding.bottom - padding.top, + y - padding.top + ) + horizontalRange.setCurrent( + width - 1f - padding.left - padding.right, + x - padding.left + ) + + // call update if listener exist + if (isOnUpdateListenerInitialised()) { + onUpdateListener.onUpdate(this) + } + + // force view redraw + invalidate() + } + + override fun drawSelector(canvas: Canvas) { + + // set fill color + val fillColor = colorHolder.selectedColor + selectorPaint.color = fillColor + selectorPaint.style = Paint.Style.FILL + canvas.drawCircle(selectorX, selectorY, selectorRadius, selectorPaint) + + // restore stroke color before calling super + selectorPaint.color = selectorColor + selectorPaint.style = Paint.Style.STROKE + super.drawSelector(canvas) + } + + override fun update() {} + override fun redraw() { + onRedraw() + } + + companion object { + + /** + * Method that returns round rectangle path, with different corner radii for each + * corner, by given position and rectangle size. + * @param x left coordinate + * @param y top coordinate + * @param width rectangle width + * @param height rectangle height + * @param radius corner radius object + * @return round rectangular path, specify by the arguments + */ + fun roundRect(x: Float, y: Float, width: Float, height: Float, radius: CornerRadius): Path { + + // make sure corner radius is in range + val min = Math.min(width, height) + var upperLeft = radius.upperLeft + var upperRight = radius.upperRight + var lowerLeft = radius.lowerLeft + var lowerRight = radius.lowerRight + if (min < 2f * upperLeft) upperLeft = min / 2f + if (min < 2f * upperRight) upperRight = min / 2f + if (min < 2f * lowerLeft) lowerLeft = min / 2f + if (min < 2f * lowerRight) lowerRight = min / 2f + + // round rectangular path + val path = Path() + path.moveTo(x + upperLeft, y) + path.lineTo(x + width - upperRight, y) + path.quadTo(x + width, y, x + width, y + upperRight) + path.lineTo(x + width, y + height - lowerRight) + path.quadTo(x + width, y + height, x + width - lowerRight, y + height) + path.lineTo(x + lowerLeft, y + height) + path.quadTo(x, y + height, x, y + height - lowerLeft) + path.lineTo(x, y + upperLeft) + path.quadTo(x, y, x + upperLeft, y) + path.close() + + return path + } + } +} \ No newline at end of file diff --git a/colorpicker/src/main/java/com/slaviboy/colorpicker/window/Slider.kt b/colorpicker/src/main/java/com/slaviboy/colorpicker/window/Slider.kt new file mode 100644 index 0000000..081f691 --- /dev/null +++ b/colorpicker/src/main/java/com/slaviboy/colorpicker/window/Slider.kt @@ -0,0 +1,173 @@ +package com.slaviboy.colorpicker.window + +import android.content.Context +import android.content.res.TypedArray +import android.graphics.PointF +import android.graphics.RectF +import android.util.AttributeSet +import com.slaviboy.colorpicker.R +import com.slaviboy.colorpicker.Range + +// Copyright (C) 2020 Stanislav Georgiev +// https://github.com/slaviboy +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +/** + * Slider class represent a slider color window model, as the selector follows only one direction. + * The model is based on 1D(One Dimensional) color window, that means it contains one range but can specify + * by the slider type property as - vertical or horizontal, that will keep the selector static for the other + * direction and mimicking slider behavior. + */ +open class Slider : Base { + + constructor(context: Context) : super(context) { + init(context, null) + } + + constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) { + init(context, attrs) + } + + constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr) { + init(context, attrs) + } + + lateinit var range: Range // slider allowed values range + protected lateinit var point0: PointF // start gradient point + protected lateinit var point1: PointF // end gradient point + var type: Int // slider type - vertical or horizontal + + init { + type = TYPE_VERTICAL + } + + private fun init(context: Context, attrs: AttributeSet?) { + + // get custom xml properties + val typedArray: TypedArray = context.obtainStyledAttributes(attrs, R.styleable.Slider) + + // get slider type + type = typedArray.getInteger(R.styleable.Slider_type, TYPE_HORIZONTAL) + + // get ranges + val rangeLower = typedArray.getFloat(R.styleable.Slider_range_lower, 0f) + val rangeUpper = typedArray.getFloat(R.styleable.Slider_range_upper, 100f) + range = Range(rangeLower, rangeUpper) + + typedArray.recycle() + } + + override fun onInit() { + + val paddingVertical: Float + val paddingHorizontal: Float + + // set points showing the directions depending if selector is centered vertically or horizontally + val x0: Float + val y0: Float + val x1: Float + val y1: Float + if (type == TYPE_VERTICAL) { + + // for vertical slider + paddingHorizontal = borderStrokeWidth + paddingVertical = padding.top + x0 = 0f + y0 = paddingVertical + x1 = 0f + y1 = height - paddingVertical + + } else { + + // for horizontal slider + paddingHorizontal = padding.left + paddingVertical = borderStrokeWidth + x0 = paddingHorizontal + y0 = 0f + x1 = width - paddingHorizontal + y1 = 0f + } + + // set points for setting gradient + point0 = PointF(x0, y0) + point1 = PointF(x1, y1) + + // set bound and clip path + bound = RectF(paddingHorizontal, paddingVertical, + width - paddingHorizontal, height - paddingVertical) + clipPath = Rectangular.roundRect(bound.left, bound.top, bound.width(), bound.height(), + cornerRadius) + + // center selector + selectorX = halfWidth + selectorY = halfHeight + } + + override fun onRedraw() { + invalidate() + } + + override fun onMove(x: Float, y: Float) { + + var x = x + var y = y + + // make sure selector does not pass the canvas boundary + if (x < padding.left) x = padding.left else if (x >= width - padding.right) x = width - 1f - padding.right + if (y < padding.top) y = padding.top else if (y >= height - padding.bottom) y = height - 1f - padding.bottom + + // center selector depending on type + if (type == TYPE_HORIZONTAL) { + y = halfHeight + } + if (type == TYPE_VERTICAL) { + x = halfWidth + } + + // set new selector position + selectorX = x + selectorY = y + + // set current horizontal and vertical range values + if (type == TYPE_VERTICAL) { + range.setCurrent( + height - 1f - padding.bottom - padding.top, + y - padding.top) + } + if (type == TYPE_HORIZONTAL) { + range.setCurrent( + width - 1f - padding.left - padding.right, + x - padding.left) + } + + // call update if listener exist + if (isOnUpdateListenerInitialised()) { + onUpdateListener.onUpdate(this) + } + invalidate() + } + + override fun update() {} + override fun redraw() { + onRedraw() + } + + companion object { + + // slider types + const val TYPE_VERTICAL = 0 + const val TYPE_HORIZONTAL = 1 + } +} \ No newline at end of file diff --git a/colorpicker/src/main/java/com/slaviboy/colorpicker/windows/circular/CircularHS.kt b/colorpicker/src/main/java/com/slaviboy/colorpicker/windows/circular/CircularHS.kt new file mode 100644 index 0000000..027246a --- /dev/null +++ b/colorpicker/src/main/java/com/slaviboy/colorpicker/windows/circular/CircularHS.kt @@ -0,0 +1,188 @@ +package com.slaviboy.colorpicker.windows.circular + +import android.content.Context +import android.graphics.* +import android.util.AttributeSet +import android.util.Log +import com.slaviboy.colorpicker.Range +import com.slaviboy.colorpicker.converter.ColorConverter +import com.slaviboy.colorpicker.window.Circular + +// Copyright (C) 2020 Stanislav Georgiev +// https://github.com/slaviboy +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +/** + * CircularHS is class representing circular H(hue) and S(Saturation) color window. + * The HUE is shown by current degree between the selector and the horizontal + * line through the center. And the SATURATION is represented by the distance + * between the selector and the circle center. + * (this color window is usually used in HSV or HSL color pickers) + */ +class CircularHS : Circular { + + constructor(context: Context) : super(context) + constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) + constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr) + + override fun onInit() { + + // set ranges fot the hue and saturation + distanceRange = Range(0f, 100f) + angleRange = Range(0f, 360f) + + // the radius is the minimum half side from width and height, that way the circle can fit in the view + radius = Math.min(halfWidth, halfHeight) - (selectorRadius + selectorStrokeWidth / 2f + selectorExtraStrokeWidth / 2f) + + val centerX = halfWidth + val centerY = halfHeight + val sX = radius + val sY = radius + + // init paint + layersPaint.apply { + alpha = 255 + shader = null + color = Color.WHITE + style = Paint.Style.STROKE + } + + // fill the circle with rainbow using lines with gradient color + var i = 0.0 + while (i < 360.0) { + + val rad = (i * (2.0 * Math.PI) / 360.0) + + val x1 = centerX + val y1 = centerY + val x2 = centerX + sX * Math.cos(rad).toFloat() + val y2 = centerY + sY * Math.sin(rad).toFloat() + + // linear gradient [White => Hue], from the center to the edge + val fillGradient: Shader = LinearGradient( + x1, y1, + x2, y2, + intArrayOf( + Color.WHITE, + ColorConverter.HSVtoColor(i.toInt(), 100, 100) + ), + floatArrayOf(0f, 1f), + Shader.TileMode.CLAMP + ) + + layersPaint.shader = fillGradient + layersCanvas.drawLine(x1, y1, x2, y2, layersPaint) + + i += 0.1 + } + + // reset paint + layersPaint.apply { + shader = null + style = Paint.Style.FILL + strokeWidth = 0f + } + } + + override fun onRedraw() { + + if (!isInit) { + return + } + + // clear bitmap + colorLayer.eraseColor(Color.TRANSPARENT) + + // draw bitmap + layersPaint.alpha = 255 + layersCanvas = Canvas(colorLayer) + layersCanvas.drawBitmap(baseLayer, 0f, 0f, layersPaint) + + // draw dimming circle + val opacity = 255 - (255 * (colorConverter.v / 100.0)).toInt() + + layersPaint.apply { + shader = null + style = Paint.Style.FILL + color = Color.argb(opacity, 0, 0, 0) + } + layersCanvas.drawCircle(halfWidth, halfHeight, radius + 1, layersPaint); + invalidate() + } + + /** + * Set H(hue) in range between [0,360] + * @param h hue value + */ + fun setH(h: Int) { + if (!isInit) { + return + } + + // set current angle + angleRange.current = h.toFloat() + angle = h.toFloat() + setSelectorPosition() + } + + /** + * Set S(saturation) in range between [0,100] + * @param s saturation value + */ + fun setS(s: Int) { + if (!isInit) { + return + } + + // set distance and current distance range + distanceRange.current = s.toFloat() + distance = radius * (s / 100.0f) + setSelectorPosition() + } + + /** + * Set H(hue) in range [0,360], and S(saturation) in range [0,100] + * @param h hue + * @param s saturation + */ + fun setHS(h: Int, s: Int) { + if (!isInit) { + return + } + angleRange.current = h.toFloat() + distanceRange.current = s.toFloat() + angle = h.toFloat() + distance = radius * (s / 100.0f) + setSelectorPosition() + } + + /** + * Set selector position using current distance and degree. + */ + fun setSelectorPosition() { + + val dPoint = distantPoint(halfWidth, halfHeight, halfWidth + radius, halfHeight, distance) + val rPoint = rotatePoint(halfWidth, halfHeight, dPoint.x, dPoint.y, 360.0 - angle) + + // set selector position + selectorX = rPoint.x + selectorY = rPoint.y + invalidate() + } + + override fun update() { + setHS(colorConverter.h, colorConverter.getS(ColorConverter.MODEL_HSV)) + } +} \ No newline at end of file diff --git a/colorpicker/src/main/java/com/slaviboy/colorpicker/windows/rectangular/RectangularSL.kt b/colorpicker/src/main/java/com/slaviboy/colorpicker/windows/rectangular/RectangularSL.kt new file mode 100644 index 0000000..5ce49c2 --- /dev/null +++ b/colorpicker/src/main/java/com/slaviboy/colorpicker/windows/rectangular/RectangularSL.kt @@ -0,0 +1,162 @@ +package com.slaviboy.colorpicker.windows.rectangular + +import android.content.Context +import android.graphics.* +import android.util.AttributeSet +import com.slaviboy.colorpicker.Range +import com.slaviboy.colorpicker.converter.ColorConverter +import com.slaviboy.colorpicker.window.Rectangular + +// Copyright (C) 2020 Stanislav Georgiev +// https://github.com/slaviboy +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +/** + * RectangularSL is class representing rectangular S(Saturation) and L(Lightness) color window. + * The SATURATION is represented by the selector position on the X-axis(horizontally), and + * the LIGHTNESS is set using the Y-axis(vertically). + * (this color window is usually used in HSL color picker) + */ +class RectangularSL : Rectangular { + + constructor(context: Context) : super(context) + constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) + constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr) + + override fun onInit() { + super.onInit() + + // starting direction is X = 0, Y = 0 and it corresponds to lower range values + horizontalRange = Range(100f, 0f) + verticalRange = Range(100f, 0f) + } + + override fun onRedraw() { + if (!isInit) { + return + } + + // clear bitmaps + baseLayer.eraseColor(Color.TRANSPARENT) + colorLayer.eraseColor(Color.TRANSPARENT) + + // create linear gradient [White => baseColor => Black](vertically) + val fillGradient: Shader = LinearGradient(0f, bound.top, 0f, bound.bottom, + intArrayOf( + Color.WHITE, + colorHolder.baseColor, + Color.BLACK + ), + floatArrayOf(0f, 0.5f, 1f), + Shader.TileMode.CLAMP) + + layersPaint.apply { + alpha = 255 + style = Paint.Style.FILL + shader = fillGradient + xfermode = PorterDuffXfermode(PorterDuff.Mode.SRC_OVER) + } + + // draw first gradient + layersCanvas = Canvas(baseLayer) + layersCanvas.drawPath(clipPath, layersPaint) + + // create linear gradient [baseColor => baseColor(transparent)] (horizontally) + val fillGradient2: Shader = LinearGradient(bound.left, 0f, bound.right, 0f, + intArrayOf( + colorHolder.baseColor, + colorHolder.baseColorTransparent + ), + floatArrayOf(0f, 1f), + Shader.TileMode.CLAMP) + + layersPaint.apply { + shader = fillGradient2 + xfermode = PorterDuffXfermode(PorterDuff.Mode.DST_IN) + } + + // draw second gradient + layersCanvas.drawPath(clipPath, layersPaint) + + // create linear gradient [White => Black](vertically) + val fillGradient3: Shader = LinearGradient(0f, bound.top, 0f, bound.bottom, + intArrayOf( + Color.WHITE, + Color.BLACK + ), + floatArrayOf(0f, 1f), + Shader.TileMode.CLAMP) + + layersPaint.apply { + shader = fillGradient3 + xfermode = PorterDuffXfermode(PorterDuff.Mode.SRC_OVER) + } + + // draw third gradient + layersCanvas = Canvas(colorLayer) + layersCanvas.drawPath(clipPath, layersPaint) + layersCanvas.drawBitmap(baseLayer, 0f, 0f, layersPaint) + invalidate() + } + + /** + * Set saturation in range between [0,100] + * @param s saturation value + */ + fun setS(s: Int) { + if (!isInit) { + return + } + + horizontalRange.current = s.toFloat() + selectorX = bound.left + bound.width() - bound.width() * (s / 100.0f) + invalidate() + } + + /** + * Set lightness in range between [0,100] + * @param l lightness value + */ + fun setL(l: Int) { + if (!isInit) { + return + } + + verticalRange.current = l.toFloat() + selectorY = bound.top + (bound.height() - bound.height() * (l / 100.0f)) + invalidate() + } + + /** + * Set saturation in range [0,100] and lightness in range [0,100] + * @param s saturation value + * @param l lightness value + */ + fun setSL(s: Int, l: Int) { + if (!isInit) { + return + } + + horizontalRange.current = s.toFloat() + selectorX = bound.left + bound.width() - bound.width() * (s / 100.0f) + verticalRange.current = l.toFloat() + selectorY = bound.top + (bound.height() - bound.height() * (l / 100.0f)) + invalidate() + } + + override fun update() { + setSL(colorConverter.getS(ColorConverter.MODEL_HSL), colorConverter.l) + } +} \ No newline at end of file diff --git a/colorpicker/src/main/java/com/slaviboy/colorpicker/windows/rectangular/RectangularSV.kt b/colorpicker/src/main/java/com/slaviboy/colorpicker/windows/rectangular/RectangularSV.kt new file mode 100644 index 0000000..c7cf302 --- /dev/null +++ b/colorpicker/src/main/java/com/slaviboy/colorpicker/windows/rectangular/RectangularSV.kt @@ -0,0 +1,151 @@ +package com.slaviboy.colorpicker.windows.rectangular + +import android.content.Context +import android.graphics.* +import android.util.AttributeSet +import com.slaviboy.colorpicker.Range +import com.slaviboy.colorpicker.converter.ColorConverter +import com.slaviboy.colorpicker.window.Rectangular + +// Copyright (C) 2020 Stanislav Georgiev +// https://github.com/slaviboy +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +/** + * RectangularSV is class representing rectangular S(Saturation) and V(Value) color window. + * The SATURATION is represented by the selector position on the X-axis(horizontally), and + * the VALUE is set using the Y-axis(vertically). + * (this color window is usually used in HSV color picker) + */ +class RectangularSV : Rectangular { + + constructor(context: Context) : super(context) + constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) + constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr) + + override fun onInit() { + super.onInit() + + //starting direction is X = 0, Y = 0 and it corresponds to lower range value + horizontalRange = Range(0f, 100f) + verticalRange = Range(100f, 0f) + initBaseLayer() + } + + public override fun onRedraw() { + if (!isInit) { + return + } + + // create the second gradient layer [baseColor => Black](vertically) + val fillGradient: Shader = LinearGradient(0f, bound.top, 0f, bound.bottom, intArrayOf( + colorHolder.baseColor, + Color.BLACK + ), floatArrayOf(0f, 1f), Shader.TileMode.CLAMP) + + layersPaint.apply { + alpha = 255 + style = Paint.Style.FILL + shader = fillGradient + } + + // clear bitmap + colorLayer.eraseColor(Color.TRANSPARENT) + layersCanvas = Canvas(colorLayer) + layersCanvas.drawPath(clipPath, layersPaint) + layersCanvas.drawBitmap(baseLayer, 0f, 0f, layersPaint) + invalidate() + } + + private fun initBaseLayer() { + + // create the first gradient layer [White => Black](vertically) + val fillGradient: Shader = LinearGradient(0f, bound.top, 0f, bound.bottom, + intArrayOf( + Color.WHITE, + Color.BLACK + ), + floatArrayOf(0f, 1f), + Shader.TileMode.CLAMP) + + layersPaint = Paint().apply { + isAntiAlias = true + shader = fillGradient + } + + // draw another gradient using -xor [Transparent => Black](horizontally) + val fillGradient2: Shader = LinearGradient(bound.left, 0f, bound.right, 0f, + intArrayOf( + Color.TRANSPARENT, + Color.BLACK + ), + floatArrayOf(0f, 1f), + Shader.TileMode.CLAMP) + + // draw rainbow shader + layersCanvas = Canvas(baseLayer) + layersCanvas.drawPath(clipPath, layersPaint) + layersPaint.xfermode = PorterDuffXfermode(PorterDuff.Mode.XOR) + layersPaint.shader = fillGradient2 + layersCanvas.drawPath(clipPath, layersPaint) + layersPaint.xfermode = PorterDuffXfermode(PorterDuff.Mode.SRC_OVER) + } + + /** + * Set saturation in range between [0,100] + * @param s saturation value + */ + fun setS(s: Int) { + if (!isInit) { + return + } + horizontalRange.current = s.toFloat() + selectorX = bound.left + bound.width() * (s / 100.0f) + invalidate() + } + + /** + * Set value in range between [0,100] + * @param v 'value' value + */ + fun setV(v: Int) { + if (!isInit) { + return + } + verticalRange.current = v.toFloat() + selectorY = bound.top + (bound.height() - bound.height() * (v / 100.0f)) + invalidate() + } + + /** + * Set saturation in range [0,100] and value in range [0,100] + * @param s saturation value + * @param v 'value' value + */ + fun setSV(s: Int, v: Int) { + if (!isInit) { + return + } + horizontalRange.current = s.toFloat() + selectorX = bound.left + bound.width() * (s / 100.0f) + verticalRange.current = v.toFloat() + selectorY = bound.top + (bound.height() - bound.height() * (v / 100.0f)) + invalidate() + } + + override fun update() { + setSV(colorConverter.getS(ColorConverter.MODEL_HSV), colorConverter.v) + } +} \ No newline at end of file diff --git a/colorpicker/src/main/java/com/slaviboy/colorpicker/windows/slider/SliderA.kt b/colorpicker/src/main/java/com/slaviboy/colorpicker/windows/slider/SliderA.kt new file mode 100644 index 0000000..b88f888 --- /dev/null +++ b/colorpicker/src/main/java/com/slaviboy/colorpicker/windows/slider/SliderA.kt @@ -0,0 +1,178 @@ +package com.slaviboy.colorpicker.windows.slider + +import android.content.Context +import android.content.res.TypedArray +import android.graphics.* +import android.util.AttributeSet +import com.slaviboy.colorpicker.R +import com.slaviboy.colorpicker.Range +import com.slaviboy.colorpicker.converter.ColorConverter +import com.slaviboy.colorpicker.window.Slider + +// Copyright (C) 2020 Stanislav Georgiev +// https://github.com/slaviboy +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +/** + * SliderA class representing A(Alpha) slider color window, with opacity value in + * range between [0,100]. + */ +class SliderA : Slider { + + constructor(context: Context) : super(context) { + init(context, null) + } + + constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) { + init(context, attrs) + } + + constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr) { + init(context, attrs) + } + + private var zebraBlockSize = 0 // zebra block size + private var zebraBlockColor = 0 // zebra block color + private var zebraBackgroundColor = 0 // zebra background color + + private fun init(context: Context, attrs: AttributeSet?) { + + // set range + range = Range(0f, 100f) + + // get xml attributes + val typedArray: TypedArray = context.obtainStyledAttributes(attrs, R.styleable.SliderA) + zebraBlockSize = typedArray.getDimensionPixelSize(R.styleable.SliderA_zebra_block_size, 14) + zebraBlockColor = typedArray.getColor(R.styleable.SliderA_zebra_block_color, Color.parseColor("#CCCCCC")) + zebraBackgroundColor = typedArray.getColor(R.styleable.SliderA_zebra_background_color, Color.WHITE) + + typedArray.recycle() + } + + override fun onInit() { + super.onInit() + + layersPaint.apply { + alpha = 255 + shader = null + color = zebraBackgroundColor + } + + // set background color + val bmpZebra = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888) + layersCanvas = Canvas(bmpZebra) + + // draw zebra background + layersCanvas.drawRect(0f, 0f, width.toFloat(), height.toFloat(), layersPaint) + + // set block color + layersPaint.color = zebraBlockColor + + // draw zebra blocks + val rows = height / zebraBlockSize // number of rows to fit + val columns = width / zebraBlockSize // number of columns to fit + for (i in 0..rows) { + for (j in 0..columns / 2) { + val left = 2 * j * zebraBlockSize + (if (i % 2 == 0) 0 else zebraBlockSize).toFloat() + val top = i * zebraBlockSize.toFloat() + val right = left + zebraBlockSize + val bottom = top + zebraBlockSize + layersCanvas.drawRect(left, top, right, bottom, layersPaint) + } + } + + // base shape with black color + val bmpBase = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888) + layersCanvas = Canvas(bmpBase) + layersPaint.color = Color.BLACK + layersCanvas.drawPath(clipPath, layersPaint) + + // draw zebra bitmap and cur base bitmap using SDT_IN mode + layersCanvas = Canvas(baseLayer) + layersCanvas.drawBitmap(bmpZebra, 0f, 0f, layersPaint) + layersPaint.xfermode = PorterDuffXfermode(PorterDuff.Mode.DST_IN) + layersCanvas.drawBitmap(bmpBase, 0f, 0f, layersPaint) + layersPaint.xfermode = PorterDuffXfermode(PorterDuff.Mode.SRC_OVER) + } + + override fun drawSelector(canvas: Canvas) { + + // set fill color + val fillColor = ColorConverter.HSVAtoColor(colorConverter.h, 100, 100, colorConverter.a) + selectorPaint.color = fillColor + selectorPaint.style = Paint.Style.FILL + canvas.drawCircle(selectorX, selectorY, selectorRadius, selectorPaint) + + super.drawSelector(canvas) + } + + override fun onRedraw() { + if (!isInit) { + return + } + + // draw linear gradient baseColor(Transparent)->baseColor + val fillGradient: Shader = LinearGradient( + point0.x, point0.y, point1.x, point1.y, + intArrayOf( + colorHolder.baseColorTransparent, + colorHolder.baseColor + ), + floatArrayOf(0f, 1f), + Shader.TileMode.CLAMP + ) + + layersPaint.apply { + alpha = 255 + style = Paint.Style.FILL + shader = fillGradient + } + + // clear bitmap + colorLayer.eraseColor(Color.TRANSPARENT) + + // draw rainbow shader + layersCanvas = Canvas(colorLayer) + layersCanvas.drawBitmap(baseLayer, 0f, 0f, layersPaint) + layersCanvas.drawPath(clipPath, layersPaint) + invalidate() + } + + /** + * Set alpha value, that will change the selector position in the slider. + * @param a alpha value + */ + fun setA(a: Int) { + if (!isInit) { + return + } + range.current = a.toFloat() + + // set selector position + val fact = range.current / 100.0f + if (type == TYPE_VERTICAL) { + val size = bound.height() + selectorY = bound.top + size * fact + } else { + val size = bound.width() + selectorX = bound.left + size * fact + } + invalidate() + } + + override fun update() { + setA(colorConverter.a) + } +} \ No newline at end of file diff --git a/colorpicker/src/main/java/com/slaviboy/colorpicker/windows/slider/SliderH.kt b/colorpicker/src/main/java/com/slaviboy/colorpicker/windows/slider/SliderH.kt new file mode 100644 index 0000000..69a23c1 --- /dev/null +++ b/colorpicker/src/main/java/com/slaviboy/colorpicker/windows/slider/SliderH.kt @@ -0,0 +1,100 @@ +package com.slaviboy.colorpicker.windows.slider + +import android.content.Context +import android.graphics.* +import android.util.AttributeSet +import com.slaviboy.colorpicker.Range +import com.slaviboy.colorpicker.window.Slider + +// Copyright (C) 2020 Stanislav Georgiev +// https://github.com/slaviboy +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +/** + * SliderH class representing H(Hue) slider color window, with hue value in + * range between [0,360]. + */ +class SliderH : Slider { + + constructor(context: Context) : super(context) + constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) + constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr) + + override fun onInit() { + super.onInit() + + // set ranges + range = Range(360f, 0f) + + // set fill rainbow gradient color + val fillColorsString = arrayOf("#ff0000", "#ff00ff", "#0000ff", "#00ffff", "#00ff00", "#ffff00", "#ff0000") + val fillColorStops = floatArrayOf(0.00f, 0.166f, 0.33f, 0.5f, 0.66f, 0.83f, 1f) + val fillColors = IntArray(fillColorsString.size) + + for (i in fillColors.indices) { + fillColors[i] = Color.parseColor(fillColorsString[i]) + } + + val fillGradient: Shader = LinearGradient(point0.x, point0.y, point1.x, point1.y, + fillColors, fillColorStops, Shader.TileMode.CLAMP) + + // init temp layerPaint + layersPaint.shader = fillGradient + + // draw rainbow fill shader + layersCanvas.drawPath(clipPath, layersPaint) + colorLayer = baseLayer + } + + override fun drawSelector(canvas: Canvas) { + + // set fill color + val fillColor = colorHolder.baseColor + selectorPaint.color = fillColor + selectorPaint.style = Paint.Style.FILL + canvas.drawCircle(selectorX, selectorY, selectorRadius, selectorPaint) + + // restore stroke color before calling super + selectorPaint.color = selectorColor + selectorPaint.style = Paint.Style.STROKE + super.drawSelector(canvas) + } + + /** + * Set hue value, that will change the selector position in the slider. + * @param h hue value + */ + private fun setH(h: Int) { + if (!isInit) { + return + } + range.current = h.toFloat() + + // set selector position + val fact = range.current / 360.0f + if (type == TYPE_VERTICAL) { + val size = bound.height() + selectorY = bound.top + (size - size * fact) + } else { + val size = bound.width() + selectorX = bound.left + (size - size * fact) + } + invalidate() + } + + override fun update() { + setH(colorConverter.h) + } +} \ No newline at end of file diff --git a/colorpicker/src/main/java/com/slaviboy/colorpicker/windows/slider/SliderV.kt b/colorpicker/src/main/java/com/slaviboy/colorpicker/windows/slider/SliderV.kt new file mode 100644 index 0000000..4745e37 --- /dev/null +++ b/colorpicker/src/main/java/com/slaviboy/colorpicker/windows/slider/SliderV.kt @@ -0,0 +1,96 @@ +package com.slaviboy.colorpicker.windows.slider + +import android.content.Context +import android.graphics.* +import android.util.AttributeSet +import com.slaviboy.colorpicker.Range +import com.slaviboy.colorpicker.window.Slider + +// Copyright (C) 2020 Stanislav Georgiev +// https://github.com/slaviboy +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +/** + * SliderV class representing V(Value) slider color window, with 'value' value in + * range between [0,100]. + */ +class SliderV : Slider { + + constructor(context: Context) : super(context) + constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) + constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr) + + override fun onInit() { + super.onInit() + range = Range(100f, 0f) + } + + override fun onRedraw() { + + if (!isInit) { + return + } + + // draw gradient [baseColor => BLACK] + val fillGradient: Shader = LinearGradient(point0.x, point0.y, point1.x, point1.y, + intArrayOf( + colorHolder.baseColor, + Color.BLACK + ), + floatArrayOf(0f, 1f), + Shader.TileMode.CLAMP) + + layersPaint.apply { + alpha = 255 + style = Paint.Style.FILL + shader = fillGradient + } + + // clear bitmap + colorLayer.eraseColor(Color.TRANSPARENT) + + // draw rainbow shader + layersCanvas = Canvas(colorLayer) + layersCanvas.drawPath(clipPath, layersPaint) + invalidate() + } + + /** + * Set 'value' value, that will change the selector position in the slider. + * @param v 'value' value + */ + fun setV(v: Int) { + + if (!isInit) { + return + } + range.current = v.toFloat() + + // set selector position + val fact = range.current / 100.0f + if (type == TYPE_VERTICAL) { + val size = bound.height() + selectorY = bound.top + (size - size * fact) + } else { + val size = bound.width() + selectorX = bound.left + (size - size * fact) + } + invalidate() + } + + override fun update() { + setV(colorConverter.v) + } +} \ No newline at end of file diff --git a/colorpicker/src/main/res/values/styles.xml b/colorpicker/src/main/res/values/styles.xml new file mode 100644 index 0000000..a4ff8f7 --- /dev/null +++ b/colorpicker/src/main/res/values/styles.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/colorpicker/src/test/java/com/slaviboy/colorpicker/ExampleUnitTest.kt b/colorpicker/src/test/java/com/slaviboy/colorpicker/ExampleUnitTest.kt new file mode 100644 index 0000000..37041e0 --- /dev/null +++ b/colorpicker/src/test/java/com/slaviboy/colorpicker/ExampleUnitTest.kt @@ -0,0 +1,80 @@ +package com.slaviboy.colorpicker + +import com.slaviboy.colorpicker.converter.ColorConverter +import com.slaviboy.colorpicker.models.HSL +import org.junit.jupiter.api.Assertions.assertEquals +import org.junit.jupiter.api.Test + +class ExampleUnitTest { + + @Test + fun addition_isCorrect() { + assertEquals(4, 2 + 2) + } + + @Test + fun colorConverterTest() { + + val converter = ColorConverter(121,234, 5, 13) + + // RGBA(red, green, blue, alpha) + assertEquals(121, converter.r) + assertEquals(234, converter.g) + assertEquals(5, converter.getB(ColorConverter.MODEL_RGBA)) + assertEquals(13, converter.a) + + // HSL(hue, saturation, lightness) + assertEquals(90, converter.h) + assertEquals(96, converter.getS(ColorConverter.MODEL_HSL)) + assertEquals(47, converter.l) + + // HSV(hue, saturation, value) + assertEquals(90, converter.h) + assertEquals(98, converter.getS(ColorConverter.MODEL_HSV)) + assertEquals(92, converter.v) + + // HWB(hue, white, black) + assertEquals(90, converter.h) + assertEquals(2, converter.w) + assertEquals(8, converter.getB(ColorConverter.MODEL_HWB)) + + // CMYK(cyan, magenta, yellow, black) + assertEquals(48, converter.c) + assertEquals(0, converter.m) + assertEquals(98, converter.y) + assertEquals(8, converter.k) + + // hex + assertEquals("#79ea05".toUpperCase(), converter.HEX) + + // check string values + assertEquals("121, 234, 5", converter.getRGB()) + assertEquals("121, 234, 5, 13", converter.getRGBA()) + assertEquals("90°, 96%, 47%", converter.getHSL()) + assertEquals("90°, 98%, 92%", converter.getHSV()) + assertEquals("90°, 2, 8", converter.getHWB()) + assertEquals("48%, 0%, 98%, 8%", converter.getCMYK()) + assertEquals("RGBA(121, 234, 5, 13), HSL(90°, 96%, 47%), HSV(90°, 98%, 92%), HWB(90°, 2, 8), CMYK(48%, 0%, 98%, 8%), HEX(#79EA05)", converter.toString()) + + // suffix test + converter.setSuffix(ColorConverter.MODEL_HSV, "* ", "& ", "#") + assertEquals("90* 98& 92#", converter.getHSV()) + + // set single value + converter.h = 180 + assertEquals("RGBA(5, 235, 235, 13), HSL(180°, 96%, 47%), HSV(180* 98& 92#), HWB(180°, 2, 8), CMYK(98%, 0%, 0%, 8%), HEX(#05EBEB)", converter.toString()) + + // set color model values + converter.setCMYK(31, 22, 1, 55) + assertEquals("RGBA(79, 90, 114, 13), HSL(221°, 18%, 38%), HSV(221* 31& 45#), HWB(221°, 31, 55), CMYK(31%, 22%, 1%, 55%), HEX(#4F5A72)", converter.toString()) + + // set color model object + val hsl = HSL(242, 19, 41) + converter.setHSL(hsl) + assertEquals("RGBA(86, 85, 124, 13), HSL(242°, 19%, 41%), HSV(242* 32& 49#), HWB(242°, 33, 51), CMYK(31%, 31%, 0%, 51%), HEX(#56557C)", converter.toString()) + + } + + + +} \ No newline at end of file diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..4d15d01 --- /dev/null +++ b/gradle.properties @@ -0,0 +1,21 @@ +# Project-wide Gradle settings. +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +org.gradle.jvmargs=-Xmx2048m +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true +# AndroidX package structure to make it clearer which packages are bundled with the +# Android operating system, and which are packaged with your app"s APK +# https://developer.android.com/topic/libraries/support-library/androidx-rn +android.useAndroidX=true +# Automatically convert third-party libraries to use AndroidX +android.enableJetifier=true +# Kotlin code style for this project: "official" or "obsolete": +kotlin.code.style=official \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000000000000000000000000000000000..f6b961fd5a86aa5fbfe90f707c3138408be7c718 GIT binary patch literal 54329 zcmagFV|ZrKvM!pAZQHhO+qP}9lTNj?q^^Y^VFp)SH8qbSJ)2BQ2giqr}t zFG7D6)c?v~^Z#E_K}1nTQbJ9gQ9<%vVRAxVj)8FwL5_iTdUB>&m3fhE=kRWl;g`&m z!W5kh{WsV%fO*%je&j+Lv4xxK~zsEYQls$Q-p&dwID|A)!7uWtJF-=Tm1{V@#x*+kUI$=%KUuf2ka zjiZ{oiL1MXE2EjciJM!jrjFNwCh`~hL>iemrqwqnX?T*MX;U>>8yRcZb{Oy+VKZos zLiFKYPw=LcaaQt8tj=eoo3-@bG_342HQ%?jpgAE?KCLEHC+DmjxAfJ%Og^$dpC8Xw zAcp-)tfJm}BPNq_+6m4gBgBm3+CvmL>4|$2N$^Bz7W(}fz1?U-u;nE`+9`KCLuqg} zwNstNM!J4Uw|78&Y9~9>MLf56to!@qGkJw5Thx%zkzj%Ek9Nn1QA@8NBXbwyWC>9H z#EPwjMNYPigE>*Ofz)HfTF&%PFj$U6mCe-AFw$U%-L?~-+nSXHHKkdgC5KJRTF}`G zE_HNdrE}S0zf4j{r_f-V2imSqW?}3w-4=f@o@-q+cZgaAbZ((hn))@|eWWhcT2pLpTpL!;_5*vM=sRL8 zqU##{U#lJKuyqW^X$ETU5ETeEVzhU|1m1750#f}38_5N9)B_2|v@1hUu=Kt7-@dhA zq_`OMgW01n`%1dB*}C)qxC8q;?zPeF_r;>}%JYmlER_1CUbKa07+=TV45~symC*g8 zW-8(gag#cAOuM0B1xG8eTp5HGVLE}+gYTmK=`XVVV*U!>H`~j4+ROIQ+NkN$LY>h4 zqpwdeE_@AX@PL};e5vTn`Ro(EjHVf$;^oiA%@IBQq>R7_D>m2D4OwwEepkg}R_k*M zM-o;+P27087eb+%*+6vWFCo9UEGw>t&WI17Pe7QVuoAoGHdJ(T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K2dMOh2%oO1J8%)0?8TOL%rS8)+CsDv}aQ>4D)Jv+DLK)9gI^n-T^$)Tc zFPUD75qJm!Y-KBqj;JP4dV4 z`X{lGmn<)1IGz330}s}Jrjtf{(lnuuNHe5(ezA(pYa=1|Ff-LhPFK8 zyJh_b{yzu0yll6ZkpRzRjezyYivjyjW7QwO;@6X`m;2Apn2EK2!~7S}-*=;5*7K$B z`x(=!^?zgj(-`&ApZJXI09aDLXaT@<;CH=?fBOY5d|b~wBA@@p^K#nxr`)?i?SqTupI_PJ(A3cx`z~9mX_*)>L F{|7XC?P&l2 literal 0 HcmV?d00001 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..2d9c856 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Wed Apr 08 22:55:30 EEST 2020 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip diff --git a/gradlew b/gradlew new file mode 100644 index 0000000..cccdd3d --- /dev/null +++ b/gradlew @@ -0,0 +1,172 @@ +#!/usr/bin/env sh + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=$(save "$@") + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong +if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then + cd "$(dirname "$0")" +fi + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000..f955316 --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,84 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windows variants + +if not "%OS%" == "Windows_NT" goto win9xME_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..57ea749 --- /dev/null +++ b/settings.gradle @@ -0,0 +1,3 @@ +include ':colorpicker' +include ':app' +rootProject.name = "ColorPickerKotlin" \ No newline at end of file