All Projects → sarathsaleem → Grained

sarathsaleem / Grained

Licence: mit
Generate animated noise texture with grained.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Grained

Asdk Demo
Texture(ASDK) - Demo
Stars: ✭ 37 (-69.67%)
Mutual labels:  texture
Oiio
Reading, writing, and processing images in a wide variety of file formats, using a format-agnostic API, aimed at VFX applications.
Stars: ✭ 1,216 (+896.72%)
Mutual labels:  texture
Textureswiftsupport
A library to gain us the DSL to define layout spec in Texture [like SwiftUI]
Stars: ✭ 105 (-13.93%)
Mutual labels:  texture
Curtainsjs
curtains.js is a lightweight vanilla WebGL javascript library that turns HTML DOM elements into interactive textured planes.
Stars: ✭ 1,039 (+751.64%)
Mutual labels:  texture
Upkmanager
Blade and Soul Unreal Engine 3 Package (UPK) Extractor and Rebuilder - View, Export and Import Textures and Sounds. DDS Load and Save in C#.
Stars: ✭ 65 (-46.72%)
Mutual labels:  texture
Assetkit
🎨 Modern 2D/3D - Importer • Exporter • Util - Library, also called (AssetIO)
Stars: ✭ 97 (-20.49%)
Mutual labels:  texture
Bcnencoder.net
Cross-platform texture encoding libary for .NET. With support for BC1-3/DXT, BC4-5/RGTC and BC7/BPTC compression. Outputs files in ktx or dds formats.
Stars: ✭ 28 (-77.05%)
Mutual labels:  texture
Pex Context
Modern WebGL state wrapper for PEX: allocate GPU resources (textures, buffers), setup state pipelines and passes, and combine them into commands.
Stars: ✭ 117 (-4.1%)
Mutual labels:  texture
Godot Scraps
Experimental projects for learning the Godot engine
Stars: ✭ 76 (-37.7%)
Mutual labels:  texture
Wechatswift
iOS WeChat App Written in Swift 5.0
Stars: ✭ 102 (-16.39%)
Mutual labels:  texture
Glslcanvas
Simple tool to load GLSL shaders on HTML Canvas using WebGL
Stars: ✭ 1,067 (+774.59%)
Mutual labels:  texture
Dds Ktx
Single header KTX/DDS reader
Stars: ✭ 62 (-49.18%)
Mutual labels:  texture
Glsleditor
Simple WebGL Fragment Shader Editor
Stars: ✭ 1,345 (+1002.46%)
Mutual labels:  texture
Emojitexture
A Unity plugin to render Emojis ☺ ❤ 🍆 🍑 to a texture
Stars: ✭ 44 (-63.93%)
Mutual labels:  texture
Rxasdatasources
RxDataSource for AsyncDisplayKit/Texture
Stars: ✭ 114 (-6.56%)
Mutual labels:  texture
Framepacker
An open source implementation of a texture bin packing algorithm. It's similar to texture tools like the TexturePacker.
Stars: ✭ 28 (-77.05%)
Mutual labels:  texture
Torch Encoding Layer
Deep Texture Encoding Network
Stars: ✭ 80 (-34.43%)
Mutual labels:  texture
Cube2sphere
Python script to map 6 cube (cubemap, skybox) faces into an equirectangular (cylindrical projection, skysphere) map.
Stars: ✭ 120 (-1.64%)
Mutual labels:  texture
Openmvs
open Multi-View Stereo reconstruction library
Stars: ✭ 1,842 (+1409.84%)
Mutual labels:  texture
Dists
IQA: Deep Image Structure and Texture Similarity Metric
Stars: ✭ 101 (-17.21%)
Mutual labels:  texture

Add animated grain texture effect to your content.

With grained.js you can add customized noise effect on your web page. It has easily customizable options to generate the animated noise effect. The animation is added using CSS3 key-frame animation and instantly generated png noise image.

"Create your own"

Create your own

How to use

Include the library file in your html page.

<script src="grained.js"></script>

initialize the library by

grained('elementId',options)

'elementId' is the id of the container element to add the grain effect. It is important to note that grainedjs will not change the background of the container element. It appends a div element as the first child of the container. Grainedjs will add two style changes to the container element 'position:relative;overflow:hidden'. If the container position is absolute it will remand as absolute only.

Since a 'div' element with class 'grained' is added as first child element with position absolute it will have the z index priority and appears on top of other contents in the container element. If you want the other elements in container element on top of grained effect you have to add a css like

#container > * { position:relative; }

So the ideal structure of implementaion is like follows

<div id="container">
   <div class="contents">
     your contents goes here .. like <a>, <p> etc
   </div>
</div>

after initilizing grained('#container', {}); it will look like this

<div id="container">
    <div class='grained'></div>
    <div class="contents">
        your contents goes here .. like <a>, <p> etc
    </div>
</div>

Options

With these options you can crate customized grained effect , these are the option parameter you can change and the default values.

 var options = {
         animate: true,
         patternWidth: 100,
         patternHeight: 100,
         grainOpacity: 0.05,
         grainDensity: 1,
         grainWidth: 1,
         grainHeight: 1
 };

With animation true/false you can create textures with grain movement and a static one. The other value you can see the live in online generator

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