Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/karlerikjonatan/framer-module-fill
A fill module for Framer.
https://github.com/karlerikjonatan/framer-module-fill
framer
Last synced: 2 months ago
JSON representation
A fill module for Framer.
- Host: GitHub
- URL: https://github.com/karlerikjonatan/framer-module-fill
- Owner: karlerikjonatan
- License: mit
- Created: 2015-03-26T10:12:47.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-03T12:15:41.000Z (over 9 years ago)
- Last Synced: 2024-08-28T21:15:40.818Z (5 months ago)
- Topics: framer
- Language: JavaScript
- Homepage:
- Size: 1.93 MB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-framer - framer.module.fill - Fill module for Framer. (Modules)
README
# framer.module.fill
framer.module.fill is a fill module for Framer.![framer.module.fill](https://raw.githubusercontent.com/karlerikjonatan/framer.module.fill/master/screenshot.png)
## Installation
Add ```fill.coffee``` to the /modules folder of your project.## Usage
To include the module within your project, add the following:``` coffeescript
fill = require "fill"
```framer.module.fill consists of the methods ```pattern```, ```video``` and accepts the parameters ```layer```, ```src```.
#### pattern
``` coffeescript
# Repeats on x-axis and y-axis
fill.pattern(layer, src)
```
The ```layer``` and ```src``` parameters defines the layer to fill and the source to fill it with.Fill source could either be local or external of type [image/*](http://en.wikipedia.org/wiki/Internet_media_type#Type_image).
#### video
``` coffeescript
fill.video(layer, src)
```
The ```layer``` and ```src``` parameters defines the layer to fill and the source to fill it with.Fill source could either be local or external of type [video/*](http://en.wikipedia.org/wiki/Internet_media_type#Type_video).
### Example
``` coffeescript
# Module
fill = require "fill"# Layers
layerA = new Layer()
layerB = new Layer()# Fill
fill.pattern(layerA, "path/to/image.jpg")
fill.video(layerB, "path/to/video.mp4")
```