All Projects → maximbilan → SKTextureGradient

maximbilan / SKTextureGradient

Licence: MIT license
A SpriteKit SKTexture Gradient

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to SKTextureGradient

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 (-33.33%)
Mutual labels:  gradient
Basic-Image-Processing
Implementation of Basic Digital Image Processing Tasks in Python / OpenCV
Stars: ✭ 102 (+277.78%)
Mutual labels:  gradient
Android-SGTextView
同时带字体描边 渐变 阴影的TextView - both have stroker, gradient and shadow TextView
Stars: ✭ 18 (-33.33%)
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 (+3.7%)
Mutual labels:  gradient
GPU-Zen-2-Baker
🥧 An OpenGL 4.x example of GPU Zen 2's ray casting techniques for baked texture generation chapter.
Stars: ✭ 32 (+18.52%)
Mutual labels:  texture
RMGradientView
A Custom Gradient View Control for iOS with inspectable properties.
Stars: ✭ 24 (-11.11%)
Mutual labels:  gradient
lazy-lambda
Lazy Lambda — a Flappy Bird clone in Haskell with SpriteKit
Stars: ✭ 72 (+166.67%)
Mutual labels:  spritekit
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 (+25.93%)
Mutual labels:  gradient
Extract-Color-Palette-Api
Create gradient drawable by extracting prominent colors from image⚫⚪
Stars: ✭ 16 (-40.74%)
Mutual labels:  gradient
SpriteShatter
SKSpriteNode animation extension to 'shatter' a node into smaller pieces
Stars: ✭ 28 (+3.7%)
Mutual labels:  spritekit
SGDLibrary
MATLAB/Octave library for stochastic optimization algorithms: Version 1.0.20
Stars: ✭ 165 (+511.11%)
Mutual labels:  gradient
Height-Based-Gradient-Color-Shaders-for-Unity
Height Based 2 color gradient shaders for Unity
Stars: ✭ 18 (-33.33%)
Mutual labels:  gradient
texture
Texture JATS XML editor integration for OJS
Stars: ✭ 18 (-33.33%)
Mutual labels:  texture
ShapeTextureDebiasedTraining
Code and models for the paper Shape-Texture Debiased Neural Network Training (ICLR 2021)
Stars: ✭ 95 (+251.85%)
Mutual labels:  texture
GradientProgressView
一个简单的进度条控件
Stars: ✭ 15 (-44.44%)
Mutual labels:  gradient
RxCocoa-Texture
RxCocoa Extension Library for Texture.
Stars: ✭ 98 (+262.96%)
Mutual labels:  texture
gradient-rs
A command line tool for playing with color gradients
Stars: ✭ 93 (+244.44%)
Mutual labels:  gradient
random-gradient
Generate beautiful random gradients
Stars: ✭ 63 (+133.33%)
Mutual labels:  gradient
TinyRage
Flappy Bird for WatchOS 6+ written in swift 5 using spriteKit
Stars: ✭ 23 (-14.81%)
Mutual labels:  spritekit
PastelXamarinIos
🌒 Gradient animations on Xamarin-iOS
Stars: ✭ 17 (-37.04%)
Mutual labels:  gradient

SKTextureGradient

Version License Platform CocoaPods CocoaPods

A simple SKTexture extension for creating a gradient effect in SpriteKit.

Installation

CocoaPods:

pod 'SKTextureGradient'

Manual:

Copy SKTextureGradient.swift to your project.

Using

let topColor = CIColor(rgba: "#71B280")
let bottomColor = CIColor(rgba: "#134E5E")

let texture = SKTexture(size: CGSizeMake(200, 200), color1: topColor, color2: bottomColor, direction: GradientDirection.up)
texture.filteringMode = .Nearest

let sprite = SKSpriteNode(texture: texture)
sprite.position = CGPointMake(CGRectGetMidX(frame), CGRectGetMidY(frame))
sprite.size = self.frame.size
addChild(sprite)

Example

alt tag

License

SKTextureGradient is available under the MIT license. See the LICENSE file for more info.

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