diff --git a/src/components/mixins.js b/src/components/mixins.js index eb9c040..8d14e33 100644 --- a/src/components/mixins.js +++ b/src/components/mixins.js @@ -60,18 +60,18 @@ export default { reject(src) } }) - }, - createGradientCanvas (c1, c2) { - var ctx = document.createElement('canvas').getContext('2d') - ctx.canvas.width = 1024 - ctx.canvas.height = 1024 - var lingrad = ctx.createLinearGradient(0, 0, 0, 1024) - lingrad.addColorStop(0, c1) - lingrad.addColorStop(1, c2) - ctx.fillStyle = lingrad - ctx.fillRect(0, 0, 1024, 1024) - return ctx.canvas } + // createGradientCanvas (c1, c2) { + // var ctx = document.createElement('canvas').getContext('2d') + // ctx.canvas.width = 1024 + // ctx.canvas.height = 1024 + // var lingrad = ctx.createLinearGradient(0, 0, 0, 1024) + // lingrad.addColorStop(0, c1) + // lingrad.addColorStop(1, c2) + // ctx.fillStyle = lingrad + // ctx.fillRect(0, 0, 1024, 1024) + // return ctx.canvas + // } // , // /** // * Converts an HSL color value to RGB. Conversion formula diff --git a/src/components/objects/Project.vue b/src/components/objects/Project.vue index 7f6e886..e944a80 100644 --- a/src/components/objects/Project.vue +++ b/src/components/objects/Project.vue @@ -1,9 +1,9 @@