Skip to content

Commit a9c29b7

Browse files
committed
add a image
1 parent cda0243 commit a9c29b7

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "particles-bg-vue",
3-
"version": "1.0.1",
3+
"version": "1.0.3",
44
"description": "Vue.js component for particles backgrounds",
55
"author": "creotip@gmail.com",
66
"license": "MIT",

src/App.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
<div id="app">
33
<div>
44
<div>hello world</div>
5-
<particles-bg type="custom" :config="config" :bg="true" />
5+
<!-- <particles-bg type="custom" :config="config" :bg="true" /> -->
6+
<particles-bg type="tadpole" :bg="true" />
67
</div>
78
</div>
89
</template>

src/particles-bg/particles/TadpoleParticles.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<canvas-comp
33
:bg="bg"
4-
global-composite-operation="lighter"
4+
global-composite-operation="xor"
55
v-on:canvasInited="canvasInited"
66
v-on:canvasResize="canvasResize"
77
v-on:canvasMouseDown="canvasMouseDown"
@@ -76,7 +76,7 @@ export default {
7676
new Proton.RectZone(0, 0, canvas.width, canvas.height),
7777
"bound"
7878
);
79-
emitter.addBehaviour(new Proton.Color(this.color || "#bbb"));
79+
emitter.addBehaviour(new Proton.Color(this.color || "#bbbbbb"));
8080
//emitter.addBehaviour(new Proton.Alpha(new Proton.Span(0.5, 1)));
8181
emitter.addBehaviour(attractionBehaviour, crossZoneBehaviour);
8282
emitter.addBehaviour(new Proton.RandomDrift(15, 15, 0.05));

0 commit comments

Comments
 (0)