Coder Social home page Coder Social logo

framer-modules / layer-filter.framer Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 43.61 MB

Preview of layer filter

Home Page: https://framer-modules.github.io/layer-filter.framer/

License: MIT License

CoffeeScript 91.91% JavaScript 2.78% CSS 4.06% HTML 1.25%
framer module layer filter

layer-filter.framer's Introduction

Layer filter

레이어 필터의 속성값을 슬라이드로 변경하여 실시간 상태 변화 확인


데모 : https://framer-modules.github.io/layer-filter.framer/

슬라이드를 이용하여 속성값을 변경하여 실시간 확인


미리보기

preview


기능

  • Brightness
  • Saturate
  • HueRotate
  • Contrast
  • Invert
  • Grayscale
  • Sepia

설치

별도의 설치는 필요하지 않음


사용

데모에서 나온 수치를 프로토타입 개발 시 레이어 속성으로 설정
또는 소스 다운로드 후 미리보기 이미지를 변경 후 적용해 볼 수 있습니다.
코드의 9번째 라인 SOURCE 값을 변경

# Image Source
SOURCE = "images/icon-192.png"

레이어의 기본속성에 관련된 내용은 FramerJS Docs - Layer를 참고하세요.  


APIs

레이어 속성

[Number] 밝기

  • 범위 : 0 ~ 1000
  • 기본값 : 100

[Number] 채도

  • 범위 : 0 ~ 100
  • 기본값 : 100

[Number] 색조회전

  • 범위 : 0 ~ 360
  • 기본값 : 0

[Number] 대비

  • 범위 : 0 ~ 100
  • 기본값 : 100

[Number] 반전

  • 범위 : 0 ~ 100
  • 기본값 : 0

[Number] 회색조

  • 범위 : 0 ~ 100
  • 기본값 : 0

[Number] 갈색조

  • 범위 : 0 ~ 100
  • 기본값 : 0

예제코드

# 데모에서 나온 값을 입력
image = new Layer
    point: Align.center
    size: 192
    image: "이미지경로"
    brightness: 100
    saturate: 100
    hueRotate: 0
    contrast: 100
    invert: 0
    grayscale: 0
    sepia: 0

layer-filter.framer's People

Contributors

threeword avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.