Fix gif export transparency issue

This commit is contained in:
jdescottes 2015-04-27 22:23:35 +02:00
parent 8ae14281cc
commit 3f181c6248
4 changed files with 410 additions and 29 deletions

View File

@ -23,8 +23,8 @@
-o-transition: all 500ms ease-out;
transition: all 500ms ease-out;
background-image: linear-gradient(45deg, rgba(0,0,0, 0.8) 25%, transparent 25%, transparent 75%, rgba(0,0,0, 0.8) 75%, rgba(0,0,0, 0.8)),
linear-gradient(-45deg, rgba(0,0,0, 0.8) 25%, transparent 25%, transparent 75%, rgba(0,0,0, 0.8) 75%, rgba(0,0,0, 0.8));
background-image: linear-gradient(45deg, #1D1D1D 20%, transparent 25%, transparent 75%, #1D1D1D 80%, #1D1D1D),
linear-gradient(-45deg, #1D1D1D 20%, transparent 25%, transparent 75%, #1D1D1D 80%, #1D1D1D);
background-size: 29px 45px;
background-repeat: repeat-x;
background-position-x: 3px;

File diff suppressed because one or more lines are too long

View File

@ -14,7 +14,7 @@
var color = {
r : 255,
g : 255,
b : 255
b : 0
};
var match = null;
while (true) {

View File

@ -5,25 +5,25 @@ describe("Color utils", function() {
it("returns a color when provided with array of colors", function() {
// when/then
var unusedColor = pskl.utils.ColorUtils.getUnusedColor(['#ffffff', '#feffff', '#fdffff']);
var unusedColor = pskl.utils.ColorUtils.getUnusedColor(['#ffff00', '#feff00', '#fdff00']);
// verify
expect(unusedColor).toBe('#FCFFFF');
expect(unusedColor).toBe('#FCFF00');
// when/then
unusedColor = pskl.utils.ColorUtils.getUnusedColor(['#fcffff', '#feffff', '#fdffff']);
unusedColor = pskl.utils.ColorUtils.getUnusedColor(['#fcff00', '#feff00', '#fdff00']);
// verify
expect(unusedColor).toBe('#FFFFFF');
expect(unusedColor).toBe('#FFFF00');
});
it("returns a color for an empty array", function() {
// when/then
var unusedColor = pskl.utils.ColorUtils.getUnusedColor([]);
// verify
expect(unusedColor).toBe('#FFFFFF');
expect(unusedColor).toBe('#FFFF00');
// when/then
unusedColor = pskl.utils.ColorUtils.getUnusedColor();
// verify
expect(unusedColor).toBe('#FFFFFF');
expect(unusedColor).toBe('#FFFF00');
});
});