dotfiles/vscode/.vscode/extensions/randomfractalsinc.vscode-data-preview-2.3.0/node_modules/chroma-js/test/blend-test.coffee
Errol Sancaktar ff17c17e23 vscode
2024-06-14 09:31:58 -06:00

26 lines
803 B
CoffeeScript

require 'es6-shim'
vows = require 'vows'
assert = require 'assert'
chroma = require '../chroma'
vows
.describe('Testing blend modes')
.addBatch
'multiply 1':
topic: chroma.blend 'red', '#5a9f37', 'multiply'
'is #5a0000': (topic) -> assert.equal topic.hex(), '#5a0000'
'multiply 2':
topic: chroma.blend '#33b16f', '#857590', 'multiply'
'is #1a513e': (topic) -> assert.equal topic.hex(), '#1b513f'
'screen':
topic: chroma.blend '#b83d31', '#0da671', 'screen'
'is #bbbb8c': (topic) -> assert.equal topic.hex(), '#bcbb8c'
'overlay':
topic: chroma.blend '#b83d31', '#0da671', 'overlay'
'is #784f2b': (topic) -> assert.equal topic.hex(), '#784f2b'
.export(module)