# alpha-color **Repository Path**: wp99/alpha-color ## Basic Information - **Project Name**: alpha-color - **Description**: This is an android studio plugin that allows you to creates new color in hex format based on a percentage (0-100) and a base color you specify. - **Primary Language**: Kotlin - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-11-15 - **Last Updated**: 2023-09-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: Kotlin, plugin, IDEA ## README # alpha-color ![Build](https://github.com/chengzijian/alpha-color/workflows/Build/badge.svg) [![Version](https://img.shields.io/jetbrains/plugin/v/PLUGIN_ID.svg)](https://plugins.jetbrains.com/plugin/PLUGIN_ID) [![Downloads](https://img.shields.io/jetbrains/plugin/d/PLUGIN_ID.svg)](https://plugins.jetbrains.com/plugin/PLUGIN_ID) ## Description This is an android studio plugin that allows you to creates new color in hex format based on a percentage (0-100) and a base color you specify i.e. #### Example 1: ```xml #000000 ``` when you supply **87** as the percentage, results in ```xml #DE000000 ``` #### Example 2: ```kotlin val textView = TextView(context) textView.setTextColor(Color.parseColor("#000000")) textView.setTextColor(0XFF000000) ``` when you supply **50** as the percentage, results in ```kotlin val textView = TextView(context) textView.setTextColor(Color.parseColor("#80000000")) textView.setTextColor(0X80000000) ``` #### Example 3: ```xml ``` when you supply **10** as the percentage, results in ```xml ``` ### Usage 1. Hop over to your "color code" and press alt + cmd (on windows Enter). 2. Click on `Generate alpha variant`. 3. Key in the percentage and click OK ## Installation - Manually: Download the [latest release](https://github.com/chengzijian/alpha-color/releases/latest) and install it manually using Settings/Preferences > Plugins > ⚙️ > Install plugin from disk... --- - Plugin based on the [IntelliJ Platform Plugin Template][template]. - Plugin based on the [alpha-bet][template2]. [template]: https://github.com/JetBrains/intellij-platform-plugin-template [template2]: https://github.com/humblerookie/alpha-bet