Code Monkey home page Code Monkey logo

blend's Introduction

Hi there 👋

blend's People

Contributors

phrozen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blend's Issues

Vivid Light - Blend Mode

Vivid light algorithm (and hard mix because of that) does not produce the same effects as Adobe Photoshop CS 5. The vivid light algorithm used right now is working fine and it is not bugged, but produces slightly different results than PSD.

This is the only vivid light algorithm I have found so far. Need to keep checking.

Edit: GIMP does not have Vivid Light Layer Mode (or Hard Mix for that matter)

HSL Blend Modes

HUE blend mode produces the same effect on both Photoshop CS5 and GIMP. Current implementation reproduces both exactly.

SATURATION, COLOR, and LUMINOSITY blending modes have different implementations on Photoshop CS5 and GIMP. Current implementation of the library produces exactly the expected result from COLOR that GIMP uses and very similar results on SATURATION and LUMINOSITY. But the Photoshop CS5 algorithms have different results on all 3 of them.

To do:

  • Match SATURATION and LUMINOSITY blend modes to the GIMP implementation, it may have to do with rgb to hsl transformations, maybe try different implementation (but... ¿why HUE and COLOR work as expected?).
  • Find the correct Photoshop algorithms (if possible, ¿maybe reverse engineer them?) and implement them forking all functions that produce different results.

update

func getWidthAndHeight(img image.Image) (width, height int) {
width = img.Bounds().Max.X - img.Bounds().Min.X
height = img.Bounds().Max.Y - img.Bounds().Min.Y
return
}

you should use the Dx() for the width and Dy() for the height

func getWidthAndHeight(img image.Image) (width, height int) {
width = img.Bounds().Dx()
height = img.Bounds().Dy()
return
}

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.