index int64 0 0 | repo_id stringlengths 16 181 | file_path stringlengths 28 270 | content stringlengths 1 11.6M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | petrpan-code/tsparticles/tsparticles/updaters/tilt | petrpan-code/tsparticles/tsparticles/updaters/tilt/src/index.ts | import type { Engine } from "tsparticles-engine";
import { TiltUpdater } from "./TiltUpdater";
/**
* @param engine - The engine to load the updater for
* @param refresh -
*/
export async function loadTiltUpdater(engine: Engine, refresh = true): Promise<void> {
await engine.addParticleUpdater("tilt", (container)... | 4,900 |
0 | petrpan-code/tsparticles/tsparticles/updaters/tilt/src/Options | petrpan-code/tsparticles/tsparticles/updaters/tilt/src/Options/Classes/Tilt.ts | import { type IOptionLoader, type RecursivePartial, ValueWithRandom } from "tsparticles-engine";
import type { ITilt } from "../Interfaces/ITilt";
import { TiltAnimation } from "./TiltAnimation";
import { TiltDirection } from "../../TiltDirection";
import type { TiltDirectionAlt } from "../../TiltDirection";
/**
* [[... | 4,901 |
0 | petrpan-code/tsparticles/tsparticles/updaters/tilt/src/Options | petrpan-code/tsparticles/tsparticles/updaters/tilt/src/Options/Classes/TiltAnimation.ts | import { type IOptionLoader, type RangeValue, type RecursivePartial, setRangeValue } from "tsparticles-engine";
import type { ITiltAnimation } from "../Interfaces/ITiltAnimation";
/**
*/
export class TiltAnimation implements ITiltAnimation, IOptionLoader<ITiltAnimation> {
decay: RangeValue;
enable;
speed:... | 4,902 |
0 | petrpan-code/tsparticles/tsparticles/updaters/tilt/src/Options | petrpan-code/tsparticles/tsparticles/updaters/tilt/src/Options/Interfaces/ITilt.ts | import type { TiltDirection, TiltDirectionAlt } from "../../TiltDirection";
import type { ITiltAnimation } from "./ITiltAnimation";
import type { IValueWithRandom } from "tsparticles-engine";
/**
* [[include:Options/Particles/Rotate.md]]
*/
export interface ITilt extends IValueWithRandom {
animation: ITiltAnimat... | 4,903 |
0 | petrpan-code/tsparticles/tsparticles/updaters/tilt/src/Options | petrpan-code/tsparticles/tsparticles/updaters/tilt/src/Options/Interfaces/ITiltAnimation.ts | import type { RangeValue } from "tsparticles-engine";
/**
*/
export interface ITiltAnimation {
decay: RangeValue;
enable: boolean;
speed: RangeValue;
sync: boolean;
}
| 4,904 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/twinkle/.browserslistrc | since 2019
not dead
| 4,905 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/twinkle/.eslintignore | dist
node_modules | 4,906 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/twinkle/.eslintrc.js | module.exports = {
extends: [
"@tsparticles/eslint-config",
]
};
| 4,907 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/twinkle/.npmignore | report.html | 4,908 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/twinkle/CHANGELOG.md | # Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.12.0](https://github.com/matteobruni/tsparticles/compare/v2.11.1...v2.12.0) (2023-08-03)
**Note:** Version bump only for package tsparticles-update... | 4,909 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/twinkle/LICENSE | MIT License
Copyright (c) 2020 Matteo Bruni
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dist... | 4,910 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/twinkle/README.md | [](https://particles.js.org)
# tsParticles Twinkle Updater
[](https://www.jsdelivr.com/package/npm/tsparticles-updater-twinkle)
[;
const version = require("./package.json").version;
module.exports = loadParticlesUpdater({ moduleName: "twinkle", updaterName: "Twinkle", version, dir: __dirname });
| 4,921 |
0 | petrpan-code/tsparticles/tsparticles/updaters/twinkle | petrpan-code/tsparticles/tsparticles/updaters/twinkle/src/TwinkleUpdater.ts | import {
type IParticleColorStyle,
type IParticleUpdater,
type Particle,
type RecursivePartial,
getRandom,
getRangeValue,
getStyleFromHsl,
rangeColorToHsl,
} from "tsparticles-engine";
import type { ITwinkleParticlesOptions, TwinkeParticle, TwinkleParticlesOptions } from "./Types";
impor... | 4,922 |
0 | petrpan-code/tsparticles/tsparticles/updaters/twinkle | petrpan-code/tsparticles/tsparticles/updaters/twinkle/src/Types.ts | import type { IParticlesOptions, Particle, ParticlesOptions } from "tsparticles-engine";
import type { ITwinkle } from "./Options/Interfaces/ITwinkle";
import type { Twinkle } from "./Options/Classes/Twinkle";
export type TwinkeParticle = Particle & {
options: TwinkleParticlesOptions;
};
export type ITwinkleParti... | 4,923 |
0 | petrpan-code/tsparticles/tsparticles/updaters/twinkle | petrpan-code/tsparticles/tsparticles/updaters/twinkle/src/index.ts | import type { Engine } from "tsparticles-engine";
import { TwinkleUpdater } from "./TwinkleUpdater";
/**
* @param engine -
* @param refresh -
*/
export async function loadTwinkleUpdater(engine: Engine, refresh = true): Promise<void> {
await engine.addParticleUpdater("twinkle", () => new TwinkleUpdater(), refres... | 4,924 |
0 | petrpan-code/tsparticles/tsparticles/updaters/twinkle/src/Options | petrpan-code/tsparticles/tsparticles/updaters/twinkle/src/Options/Classes/Twinkle.ts | import type { IOptionLoader, RecursivePartial } from "tsparticles-engine";
import type { ITwinkle } from "../Interfaces/ITwinkle";
import { TwinkleValues } from "./TwinkleValues";
/**
* [[include:Options/Particles/Twinkle.md]]
*/
export class Twinkle implements ITwinkle, IOptionLoader<ITwinkle> {
lines;
part... | 4,925 |
0 | petrpan-code/tsparticles/tsparticles/updaters/twinkle/src/Options | petrpan-code/tsparticles/tsparticles/updaters/twinkle/src/Options/Classes/TwinkleValues.ts | import {
type IOptionLoader,
OptionsColor,
type RangeValue,
type RecursivePartial,
setRangeValue,
} from "tsparticles-engine";
import type { ITwinkleValues } from "../Interfaces/ITwinkleValues";
/**
*/
export class TwinkleValues implements ITwinkleValues, IOptionLoader<ITwinkleValues> {
color?... | 4,926 |
0 | petrpan-code/tsparticles/tsparticles/updaters/twinkle/src/Options | petrpan-code/tsparticles/tsparticles/updaters/twinkle/src/Options/Interfaces/ITwinkle.ts | import type { ITwinkleValues } from "./ITwinkleValues";
/**
* [[include:Options/Particles/Twinkle.md]]
*/
export interface ITwinkle {
lines: ITwinkleValues;
particles: ITwinkleValues;
}
| 4,927 |
0 | petrpan-code/tsparticles/tsparticles/updaters/twinkle/src/Options | petrpan-code/tsparticles/tsparticles/updaters/twinkle/src/Options/Interfaces/ITwinkleValues.ts | import type { IOptionsColor, RangeValue } from "tsparticles-engine";
/**
*/
export interface ITwinkleValues {
color?: string | IOptionsColor;
enable: boolean;
frequency: number;
opacity: RangeValue;
}
| 4,928 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/wobble/.browserslistrc | since 2019
not dead
| 4,929 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/wobble/.eslintignore | dist
node_modules | 4,930 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/wobble/.eslintrc.js | module.exports = {
extends: [
"@tsparticles/eslint-config",
]
};
| 4,931 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/wobble/.npmignore | report.html | 4,932 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/wobble/CHANGELOG.md | # Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.12.0](https://github.com/matteobruni/tsparticles/compare/v2.11.1...v2.12.0) (2023-08-03)
**Note:** Version bump only for package tsparticles-update... | 4,933 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/wobble/LICENSE | MIT License
Copyright (c) 2020 Matteo Bruni
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dist... | 4,934 |
0 | petrpan-code/tsparticles/tsparticles/updaters | petrpan-code/tsparticles/tsparticles/updaters/wobble/README.md | [](https://particles.js.org)
# tsParticles Wobble Updater
[](https://www.jsdelivr.com/package/npm/tsparticles-updater-wobble)
[;
const version = require("./package.json").version;
module.exports = loadParticlesUpdater({ moduleName: "wobble", updaterName: "Wobble", version, dir: __dirname });
| 4,945 |
0 | petrpan-code/tsparticles/tsparticles/updaters/wobble | petrpan-code/tsparticles/tsparticles/updaters/wobble/src/Types.ts | import type { IParticlesOptions, Particle, ParticlesOptions } from "tsparticles-engine";
import type { IWobble } from "./Options/Interfaces/IWobble";
import type { Wobble } from "./Options/Classes/Wobble";
interface IParticleWobble {
angle: number;
angleSpeed: number;
moveSpeed: number;
}
/**
* Wobble pa... | 4,946 |
0 | petrpan-code/tsparticles/tsparticles/updaters/wobble | petrpan-code/tsparticles/tsparticles/updaters/wobble/src/Utils.ts | import type { IDelta } from "tsparticles-engine";
import type { WobbleParticle } from "./Types";
/**
* Updates particle wobbling values
* @param particle - the particle to update
* @param delta - this variable contains the delta between the current frame and the previous frame
*/
export function updateWobble(parti... | 4,947 |
0 | petrpan-code/tsparticles/tsparticles/updaters/wobble | petrpan-code/tsparticles/tsparticles/updaters/wobble/src/WobbleUpdater.ts | import {
type Container,
type IDelta,
type IParticleUpdater,
type RecursivePartial,
getRandom,
getRangeValue,
} from "tsparticles-engine";
import type { IWobbleParticlesOptions, WobbleParticle, WobbleParticlesOptions } from "./Types";
import { Wobble } from "./Options/Classes/Wobble";
import { u... | 4,948 |
0 | petrpan-code/tsparticles/tsparticles/updaters/wobble | petrpan-code/tsparticles/tsparticles/updaters/wobble/src/index.ts | import type { Engine } from "tsparticles-engine";
import { WobbleUpdater } from "./WobbleUpdater";
/**
* @param engine -
* @param refresh -
*/
export async function loadWobbleUpdater(engine: Engine, refresh = true): Promise<void> {
await engine.addParticleUpdater("wobble", (container) => new WobbleUpdater(conta... | 4,949 |
0 | petrpan-code/tsparticles/tsparticles/updaters/wobble/src/Options | petrpan-code/tsparticles/tsparticles/updaters/wobble/src/Options/Classes/Wobble.ts | import {
type IOptionLoader,
type IRangeValue,
type RangeValue,
type RecursivePartial,
isNumber,
setRangeValue,
} from "tsparticles-engine";
import type { IWobble } from "../Interfaces/IWobble";
import type { IWobbleSpeed } from "../Interfaces/IWobbleSpeed";
import { WobbleSpeed } from "./Wobble... | 4,950 |
0 | petrpan-code/tsparticles/tsparticles/updaters/wobble/src/Options | petrpan-code/tsparticles/tsparticles/updaters/wobble/src/Options/Classes/WobbleSpeed.ts | import { type IOptionLoader, type RangeValue, type RecursivePartial, setRangeValue } from "tsparticles-engine";
import type { IWobbleSpeed } from "../Interfaces/IWobbleSpeed";
export class WobbleSpeed implements IWobbleSpeed, IOptionLoader<IWobbleSpeed> {
angle: RangeValue;
move: RangeValue;
constructor()... | 4,951 |
0 | petrpan-code/tsparticles/tsparticles/updaters/wobble/src/Options | petrpan-code/tsparticles/tsparticles/updaters/wobble/src/Options/Interfaces/IWobble.ts | import type { IWobbleSpeed } from "./IWobbleSpeed";
import type { RangeValue } from "tsparticles-engine";
export interface IWobble {
distance: RangeValue;
enable: boolean;
speed: RangeValue | IWobbleSpeed;
}
| 4,952 |
0 | petrpan-code/tsparticles/tsparticles/updaters/wobble/src/Options | petrpan-code/tsparticles/tsparticles/updaters/wobble/src/Options/Interfaces/IWobbleSpeed.ts | import type { RangeValue } from "tsparticles-engine";
export interface IWobbleSpeed {
angle: RangeValue;
move: RangeValue;
}
| 4,953 |
0 | petrpan-code/tsparticles/tsparticles/utils | petrpan-code/tsparticles/tsparticles/utils/configs/.browserslistrc | since 2019
not dead
| 4,954 |
0 | petrpan-code/tsparticles/tsparticles/utils | petrpan-code/tsparticles/tsparticles/utils/configs/.eslintignore | dist
node_modules | 4,955 |
0 | petrpan-code/tsparticles/tsparticles/utils | petrpan-code/tsparticles/tsparticles/utils/configs/.eslintrc.js | module.exports = {
extends: [
"@tsparticles/eslint-config",
]
};
| 4,956 |
0 | petrpan-code/tsparticles/tsparticles/utils | petrpan-code/tsparticles/tsparticles/utils/configs/CHANGELOG.md | # Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# [2.12.0](https://github.com/matteobruni/tsparticles/compare/v2.11.1...v2.12.0) (2023-08-03)
**Note:** Version bump only for package tsparticles-demo-c... | 4,957 |
0 | petrpan-code/tsparticles/tsparticles/utils | petrpan-code/tsparticles/tsparticles/utils/configs/LICENSE | MIT License
Copyright (c) 2020 Matteo Bruni
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dist... | 4,958 |
0 | petrpan-code/tsparticles/tsparticles/utils | petrpan-code/tsparticles/tsparticles/utils/configs/README.md | [](https://particles.js.org)
# tsParticles Demo Configs
## Installation
```bash
npm install --save-dev tsparticles-demo-configs
```
or
```bash
yarn add --dev tsparticles-demo-configs
```
or
```bash
pnpm add --save-dev tsparticles-demo-configs
```
## CDN
```... | 4,959 |
0 | petrpan-code/tsparticles/tsparticles/utils | petrpan-code/tsparticles/tsparticles/utils/configs/package.dist.json | {
"name": "tsparticles-demo-configs",
"version": "2.12.0",
"description": "tsParticles demo configurations",
"homepage": "https://particles.js.org",
"repository": {
"type": "git",
"url": "git+https://github.com/matteobruni/tsparticles.git",
"directory": "utils/configs"
},
"keywords": [
"fr... | 4,960 |
0 | petrpan-code/tsparticles/tsparticles/utils | petrpan-code/tsparticles/tsparticles/utils/configs/package.json | {
"name": "tsparticles-demo-configs",
"version": "2.12.0",
"homepage": "https://particles.js.org",
"scripts": {
"build": "tsparticles-cli build",
"build:ci": "tsparticles-cli build --ci",
"version": "tsparticles-cli build -d && git add package.dist.json",
"prepack": "pnpm run build"
},
"repo... | 4,961 |
0 | petrpan-code/tsparticles/tsparticles/utils | petrpan-code/tsparticles/tsparticles/utils/configs/tsconfig.base.json | {
"extends": "@tsparticles/tsconfig/tsconfig.base.json",
"compilerOptions": {
"rootDir": "./src"
},
"include": [
"./src"
]
}
| 4,962 |
0 | petrpan-code/tsparticles/tsparticles/utils | petrpan-code/tsparticles/tsparticles/utils/configs/tsconfig.browser.json | {
"extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.browser.json"],
"compilerOptions": {
"outDir": "./dist/browser"
}
}
| 4,963 |
0 | petrpan-code/tsparticles/tsparticles/utils | petrpan-code/tsparticles/tsparticles/utils/configs/tsconfig.json | {
"extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.json"],
"compilerOptions": {
"outDir": "./dist/cjs"
}
}
| 4,964 |
0 | petrpan-code/tsparticles/tsparticles/utils | petrpan-code/tsparticles/tsparticles/utils/configs/tsconfig.module.json | {
"extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.module.json"],
"compilerOptions": {
"outDir": "./dist/esm"
}
}
| 4,965 |
0 | petrpan-code/tsparticles/tsparticles/utils | petrpan-code/tsparticles/tsparticles/utils/configs/tsconfig.types.json | {
"extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.types.json"],
"compilerOptions": {
"outDir": "./dist/types"
}
}
| 4,966 |
0 | petrpan-code/tsparticles/tsparticles/utils | petrpan-code/tsparticles/tsparticles/utils/configs/tsconfig.umd.json | {
"extends": ["./tsconfig.base.json", "@tsparticles/tsconfig/tsconfig.umd.json"],
"compilerOptions": {
"outDir": "./dist/umd"
}
}
| 4,967 |
0 | petrpan-code/tsparticles/tsparticles/utils | petrpan-code/tsparticles/tsparticles/utils/configs/typedoc.json | {
"includes": "./markdown",
"entryPoints": [
"./src/"
],
"entryPointStrategy": "expand",
"name": "tsParticles Full Bundle",
"includeVersion": true,
"hideGenerator": true,
"out": "./docs",
"keywords": [
"html",
"css",
"javascript",
"typescript",
"particles",
"js",
"ts",
... | 4,968 |
0 | petrpan-code/tsparticles/tsparticles/utils | petrpan-code/tsparticles/tsparticles/utils/configs/webpack.config.js | const { loadParticlesBundle } = require("@tsparticles/webpack-plugin");
const version = require("./package.json").version;
module.exports = loadParticlesBundle({ moduleName: "configs", bundleName: "Configs", version, dir: __dirname });
| 4,969 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs | petrpan-code/tsparticles/tsparticles/utils/configs/src/bundle.ts | export * from "./index";
| 4,970 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs | petrpan-code/tsparticles/tsparticles/utils/configs/src/index.ts | import { type ISourceOptions, tsParticles } from "tsparticles-engine";
import a from "./a";
import b from "./b";
import c from "./c";
import d from "./d";
import e from "./e";
import f from "./f";
import g from "./g";
import h from "./h";
import i from "./i";
import j from "./j";
import k from "./k";
import l from "./l... | 4,971 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/a/absorbers.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Absorbers",
particles: {
number: {
value: 300,
},
collisions: {
enable: true,
},
color: {
value: "#ffffff",
},
shape: {
... | 4,972 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/a/amongUs.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Among Us",
particles: {
groups: {
z5000: {
number: {
value: 70,
},
zIndex: {
value: 50,
... | 4,973 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/a/index.ts | import absorbers from "./absorbers.js";
import amongUs from "./amongUs.js";
export default {
absorbers,
amongUs,
};
| 4,974 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/b/backgroundMask.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Background Mask",
particles: {
number: {
value: 80,
density: {
enable: true,
},
},
color: {
value: "#ffffff",
},
... | 4,975 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/b/basic.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Basic",
particles: {
number: {
value: 80,
density: {
enable: true,
},
},
color: {
value: "#ff0000",
animation: {... | 4,976 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/b/big.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Big Particles",
particles: {
number: {
value: 30,
},
color: {
value: ["#5bc0eb", "#fde74c", "#9bc53d", "#e55934", "#fa7921"],
},
shape: {
... | 4,977 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/b/blackHole.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Black Hole",
particles: {
number: {
value: 1000,
density: {
enable: true,
},
},
color: {
value: ["#ffffff", "#77ccff", "#ff3... | 4,978 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/b/bubble.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Bubble",
particles: {
number: {
value: 6,
density: {
enable: true,
},
},
color: {
value: "#1b1e34",
},
shape... | 4,979 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/b/index.ts | import backgroundMask from "./backgroundMask";
import basic from "./basic";
import big from "./big";
import blackHole from "./blackHole";
import bubble from "./bubble";
export default {
backgroundMask,
basic,
big,
blackHole,
bubble,
};
| 4,980 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/c/cards.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Cards",
particles: {
number: {
value: 80,
density: {
enable: true,
},
},
reduceDuplicates: true,
shape: {
type: ["sp... | 4,981 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/c/chars.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Chars",
particles: {
number: {
value: 80,
density: {
enable: true,
},
},
color: {
value: "#ff0000",
},
strok... | 4,982 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/c/clickConfetti.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Click Confetti",
fpsLimit: 60,
interactivity: {
events: {
onClick: {
enable: true,
mode: "emitter",
},
},
modes: {
e... | 4,983 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/c/clickPause.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Click Pause",
particles: {
number: {
value: 80,
density: {
enable: true,
},
},
color: {
value: "#ffffff",
},
... | 4,984 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/c/collisionsAbsorb.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Collisions Absorb",
particles: {
number: {
value: 80,
density: {
enable: true,
},
},
color: {
value: "#ffffff",
},
... | 4,985 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/c/collisionsBounce.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Collisions Bounce",
particles: {
number: {
value: 80,
density: {
enable: true,
},
},
color: {
value: "#ffffff",
},
... | 4,986 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/c/collisionsDestroy.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Collisions Destroy",
particles: {
number: {
value: 80,
density: {
enable: true,
},
},
color: {
value: ["#3998D0", "#2EB6AF",... | 4,987 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/c/colorAnimation.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Color Animation",
particles: {
number: {
value: 80,
density: {
enable: true,
},
},
color: {
value: "#ff0000",
an... | 4,988 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/c/connect.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Connect",
interactivity: {
events: {
onClick: {
enable: true,
mode: "push",
},
onDiv: {
elementId: "repulse-div",
... | 4,989 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/c/customPreset.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Custom Preset",
preset: "fire",
};
export default options;
| 4,990 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/c/customShape.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Custom Shape",
particles: {
links: {
enable: false,
},
stroke: {
color: {
value: "random",
},
width: 1,
},
s... | 4,991 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/c/index.ts | import cards from "./cards";
import chars from "./chars";
import clickPause from "./clickPause";
import collisionsAbsorb from "./collisionsAbsorb";
import collisionsBounce from "./collisionsBounce";
import collisionsDestroy from "./collisionsDestroy";
import colorAnimation from "./colorAnimation";
import connect from "... | 4,992 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/d/dataImages.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Data URI Images",
interactivity: {
events: {
onClick: {
enable: true,
mode: "push",
},
onDiv: {
elementId: "repulse-div"... | 4,993 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/d/delay.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Delay",
delay: 5,
particles: {
number: {
value: 80,
density: {
enable: true,
},
},
color: {
value: "#ff0000",
... | 4,994 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/d/delayColor.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Delay Color",
background: {
color: {
value: "#000",
},
},
particles: {
color: {
value: "#f00",
animation: {
enable: true,
... | 4,995 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/d/delayOpacity.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Delay Opacity",
background: {
color: {
value: "#000",
},
},
particles: {
color: {
value: "#fff",
},
number: {
value: 100,
... | 4,996 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/d/delaySize.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Delay Size",
background: {
color: {
value: "#000",
},
},
particles: {
color: {
value: "#fff",
},
number: {
value: 100,
}... | 4,997 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/d/delayStrokeColor.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Delay Stroke Color",
background: {
color: {
value: "#000",
},
},
particles: {
stroke: {
color: {
value: "#f00",
animation: {... | 4,998 |
0 | petrpan-code/tsparticles/tsparticles/utils/configs/src | petrpan-code/tsparticles/tsparticles/utils/configs/src/d/destroy.ts | import type { ISourceOptions } from "tsparticles-engine";
const options: ISourceOptions = {
name: "Destroy",
particles: {
number: {
value: 80,
density: {
enable: true,
},
},
color: {
value: "#ffffff",
},
sha... | 4,999 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.