All Projects → bukinoshita → random-gradient

bukinoshita / random-gradient

Licence: MIT license
Generate beautiful random gradients

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to random-gradient

GDLibrary
Matlab library for gradient descent algorithms: Version 1.0.1
Stars: ✭ 50 (-20.63%)
Mutual labels:  gradient
ProxGradPytorch
PyTorch implementation of Proximal Gradient Algorithms a la Parikh and Boyd (2014). Useful for Auto-Sizing (Murray and Chiang 2015, Murray et al. 2019).
Stars: ✭ 28 (-55.56%)
Mutual labels:  gradient
RMGradientView
A Custom Gradient View Control for iOS with inspectable properties.
Stars: ✭ 24 (-61.9%)
Mutual labels:  gradient
clad
clad -- automatic differentiation for C/C++
Stars: ✭ 161 (+155.56%)
Mutual labels:  gradient
colr
Easy terminal colors, with chainable methods.
Stars: ✭ 32 (-49.21%)
Mutual labels:  gradient
Height-Based-Gradient-Color-Shaders-for-Unity
Height Based 2 color gradient shaders for Unity
Stars: ✭ 18 (-71.43%)
Mutual labels:  gradient
MaskedLabel
MaskedLabel is a UILabel subclass that allows you to easily apply a gradient to its text or to make it transparent.
Stars: ✭ 20 (-68.25%)
Mutual labels:  gradient
GradientProgressView
一个简单的进度条控件
Stars: ✭ 15 (-76.19%)
Mutual labels:  gradient
LuminousNewTab
Luminous New Tab is a beautiful 'new tab' browser extension that has an animated gradient background! New tabs will show your bookmarks, the time, weather and let you do searches too!
Stars: ✭ 18 (-71.43%)
Mutual labels:  gradient
gradient-rs
A command line tool for playing with color gradients
Stars: ✭ 93 (+47.62%)
Mutual labels:  gradient
my-swift-projects
An overview of my most relevant open-source projects on GitHub
Stars: ✭ 261 (+314.29%)
Mutual labels:  gradient
svg-non-stop
SVG import "Gradient has no stop info" fix
Stars: ✭ 65 (+3.17%)
Mutual labels:  gradient
Extract-Color-Palette-Api
Create gradient drawable by extracting prominent colors from image⚫⚪
Stars: ✭ 16 (-74.6%)
Mutual labels:  gradient
fastai-docker
Fast.AI course complete docker container for Paperspace and Gradient
Stars: ✭ 52 (-17.46%)
Mutual labels:  gradient
PastelXamarinIos
🌒 Gradient animations on Xamarin-iOS
Stars: ✭ 17 (-73.02%)
Mutual labels:  gradient
GradientAnimator
GradientAnimator helps to fill your view with vibrant gradient theme colours and animates them to give a stunning view to your application design
Stars: ✭ 70 (+11.11%)
Mutual labels:  gradient
SGDLibrary
MATLAB/Octave library for stochastic optimization algorithms: Version 1.0.20
Stars: ✭ 165 (+161.9%)
Mutual labels:  gradient
sweetconfirm.js
👌A useful zero-dependencies, less than 434 Bytes (gzipped), pure JavaScript & CSS solution for drop an annoying pop-ups confirming the submission of form in your web apps.
Stars: ✭ 34 (-46.03%)
Mutual labels:  gradient
Android-SGTextView
同时带字体描边 渐变 阴影的TextView - both have stroker, gradient and shadow TextView
Stars: ✭ 18 (-71.43%)
Mutual labels:  gradient
Basic-Image-Processing
Implementation of Basic Digital Image Processing Tasks in Python / OpenCV
Stars: ✭ 102 (+61.9%)
Mutual labels:  gradient

random-gradient Build Status

Generate beautiful random gradients


Install

$ npm install --save random-gradient

Usage

// with React

import gradient from 'random-gradient'

export default ({ name }) => {
  const bgGradient = { background: gradient(name) }

  return (
    <div style={bgGradient}>
      <h2>{name}</h2>
    </div>
  )
}

// with Vue

import gradient from 'random-gradient'

Vue.directive('random-gradient', {
    inserted: function (el) {
        // Using the element's "title" attribute, e.g.
        el.style.backgroundImage = gradient(el.title);
    }
});

API

randomGradient(uid, type)

uid

Type: string
Required

type

Type: string
Default: diagonal
Options: diagonal, vertical, horizontal, radial

Related

License

MIT © Bu Kinoshita

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].