Skip to content

xyproto/crossfade

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crossfade

  • Go module for crossfading between two image files.
  • Started out as a fork of phrozen/blend.
  • Includes a blend command line utility, for mixing two images 50%/50%.

github.com/anthonysimon/bild is a more popular choice than this package.

Example use of the Go package

crossfade.Files("a.png", "b.png", "out.png", 0.5)

The last argument is a float that regulates the transition from one image to the other, where 0.0 is only "a.png", while 1.0 is only "b.png".

Screenshots

0% lemur 100% mountain

0% lemur

20% lemur 80% mountain

20% lemur

50% lemur 50% mountain

50% lemur

80% lemur 20% mountain

80% lemur

100% lemur 0% mountain

lemur

The images are from wikipedia: lemur | mountain

Blendmode examples

Note that these images and blend modes are from the phrozen/blend repo that this repo was forked from.

A B
source destination

blend add

Add

blend color

Color

blend color_burn

Color Burn

blend color_dodge

Color Dodge

blend darken

Darken

blend darker_color

Darker Color

blend difference

Difference

blend divide

Divide

blend exclusion

Exclusion

blend hard_light

Hard Light

blend hard_mix

Hard Mix

blend hue

Hue

blend lighten

Lighten

blend lighter_color

Lighter Color

blend linear_burn

Linear Burn

blend linear_dodge

Linear Dodge

blend linear_light

Linear Light

blend luminosity

Luminosity

blend multiply

Multiply

blend overlay

Overlay

blend phoenix

Phoenix

blend pin_light

Pin Light

blend reflex

Reflex

blend saturation

Saturation

blend screen

Screen

blend soft_light

Soft Light

blend substract

Substract

blend vivid_light

Vivid Light

General info

  • License: MIT
  • Version: 1.1.2

Packages

No packages published

Languages

  • Go 100.0%