All Projects → uias → Randient

uias / Randient

Licence: MIT License
🎨 Radient, random gradients in Swift

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
HTML
75241 projects
objective c
16641 projects - #2 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to Randient

Skeletonview
☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting
Stars: ✭ 10,804 (+18211.86%)
Mutual labels:  gradients
Agvolumecontrolview
Visual regulator can be connected to a player or other smart house’s device making the process of controlling the level of a particular characteristic
Stars: ✭ 170 (+188.14%)
Mutual labels:  gradients
GradientProgressView
一个简单的进度条控件
Stars: ✭ 15 (-74.58%)
Mutual labels:  gradients
Finitediff.jl
Fast non-allocating calculations of gradients, Jacobians, and Hessians with sparsity support
Stars: ✭ 123 (+108.47%)
Mutual labels:  gradients
Gradient Inspector
Chrome extension that provides a friendly way to inspect gradients of an element.
Stars: ✭ 161 (+172.88%)
Mutual labels:  gradients
tensorflow-bicubic-downsample
tf.image.resize_images has aliasing when downsampling and does not have gradients for bicubic mode. This implementation fixes those problems.
Stars: ✭ 23 (-61.02%)
Mutual labels:  gradients
Gradient Screens
🌈 Gradients applied to buttons, texts and backgrounds in Flutter
Stars: ✭ 97 (+64.41%)
Mutual labels:  gradients
fuze
A simple CSS Gradient Animator tool built with Vue and Vuex.
Stars: ✭ 71 (+20.34%)
Mutual labels:  gradients
Flutter gradients
A curated collection of awesome gradients made in Dart for Flutter
Stars: ✭ 170 (+188.14%)
Mutual labels:  gradients
functorch
functorch is JAX-like composable function transforms for PyTorch.
Stars: ✭ 1,107 (+1776.27%)
Mutual labels:  gradients
React Native Css Gradient
React Native css gradients - react-native-linear-gradient with css gradient support
Stars: ✭ 129 (+118.64%)
Mutual labels:  gradients
Gradientking
Never again run out of gradients! 🌈
Stars: ✭ 157 (+166.1%)
Mutual labels:  gradients
gradient animations
An example of how to animate gradients in flutter
Stars: ✭ 62 (+5.08%)
Mutual labels:  gradients
Ink Gradient
Gradient color component for Ink
Stars: ✭ 123 (+108.47%)
Mutual labels:  gradients
SwiftGradients
Useful extensions for UIViews and CALayer classes to add beautiful color gradients.
Stars: ✭ 15 (-74.58%)
Mutual labels:  gradients
Colors.jl
Color manipulation utilities for Julia
Stars: ✭ 114 (+93.22%)
Mutual labels:  gradients
Magicgradients
Draw breathtaking backgrounds in your Xamarin.Forms application. It's a kind of magic.
Stars: ✭ 236 (+300%)
Mutual labels:  gradients
tailwindcss-landing-gradients
A landing page made with tailwindcss and the new Gradient feature.
Stars: ✭ 41 (-30.51%)
Mutual labels:  gradients
hypercolor
A curated collection of beautiful premade gradients using default colors from the Tailwind palette as well as a selection of custom color gradients.
Stars: ✭ 187 (+216.95%)
Mutual labels:  gradients
gradient-terminal
A CLI progam show teminal outputs as gradients.
Stars: ✭ 30 (-49.15%)
Mutual labels:  gradients

Tabman

CocoaPods Platforms

Tabman

⭐️ Features

  • Beautiful, automatically generated gradients from uiGradients in Swift.
  • Smoothly animating, randomizable gradient views.
  • Life is like a box of chocolates.

📋 Requirements

iOS 9 & Swift 4 / 5.

📲 Installation

CocoaPods

To install Randient using CocoaPods, add this line to your Podfile:

pod 'Randient'

Carthage

To install Randient using Carthage, add this line to your Cartfile:

github "Randient"

🚀 Usage

Gradient Roulette

RandientView is a simple view that will display a randomly selected gradient from the uiGradients catalog.

let randientView = RandientView()
randientView.frame = CGRect(x: 0, y: 0, width: 100, height: 100)
view.addSubview(randientView)

Updating to a new gradient is as simple as...

randientView.randomize(animated: true)

Those wonderful gradients

An enum of all the gradients from uiGradients is generated every time that Randient is built.

These are available as an enum via UIGradient.

let gradient = UIGradient.royalBlue
let colors = gradient.data.colors

If you're feeling lucky, a randomized UIGradient can also be retrieved.

let randomGradient = Randient.randomize()

The raw stuff

Each UIGradient has associated Data which can be accessed via .data.

struct Data {
    public let name: String
    public let colors: [UIColor]
}

Metadata is also available, accessible via .metadata.

struct Metadata {
    public let isPredominantlyLight: Bool
}

Gradient View

RandientView inherits from GradientView, which under the hood uses simply uses a CAGradientLayer for rendering gradients.

GradientView provides the following:

  • .colors: [UIColor]? - Colors of the gradient.
  • .locations: [Double]? - Locations of each gradient stop.
  • .startPoint: CGPoint - Start point of the gradient (Defaults to 0.5, 0.0).
  • .endPoint: CGPoint - End point of the gradient (Defaults to 0.5, 1.0).

👨🏻‍💻 About

❤️ Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/uias/Randient.

👮🏻‍♂️ License

The library is available as open source under the terms of the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].