https://github.com/cpscript/cpscript
✨Special✨
https://github.com/cpscript/cpscript
config github github-config profile readme
Last synced: about 2 months ago
JSON representation
✨Special✨
- Host: GitHub
- URL: https://github.com/cpscript/cpscript
- Owner: CPScript
- Created: 2022-11-01T12:57:02.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-05T15:24:40.000Z (about 2 months ago)
- Last Synced: 2025-05-06T09:19:32.323Z (about 2 months ago)
- Topics: config, github, github-config, profile, readme
- Homepage: https://cpscript.github.io/CPScript/
- Size: 1.78 MB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![]()
![]()
---
*“Code is like humor. When you have to explain it, it’s bad.”* – **Cory House**
---
**About me**:
* **Contact me:** *[email protected]*
* Some of my repos are incomplete or have errors, if you find one; please make an issue so I can go back and fix it <3
* I specialize. I love mathmatics, physics, computer programming, and system development. (I also like to research radiology(not just x-ray, but how nuclear energy and radiation works plus the chemestry behind uch) and biology)
![]()

$$\Psi(m, n) = \left(R\left(f_r\left(\frac{m-\frac{W}{2}}{\eta}, \frac{n-\frac{H}{2}}{\eta}\right)\right), G\left(f_g\left(\frac{m-\frac{W}{2}}{\eta}, \frac{n-\frac{H}{2}}{\eta}\right)\right), B\left(f_b\left(\frac{m-\frac{W}{2}}{\eta}, \frac{n-\frac{H}{2}}{\eta}\right)\right)\right)$$
$$R(x) = 255e^{-\alpha_r\|x\|^2}\left|x\right|^{\beta_r+\delta_r\sin(\gamma_r\|x\|)}$$
$$G(x) = 255e^{-\alpha_g\|x\|^2}\left|x\right|^{\beta_g+\delta_g\sin(\gamma_g\|x\|)}$$
$$B(x) = 255e^{-\alpha_b\|x\|^2}\left|x\right|^{\beta_b+\delta_b\sin(\gamma_b\|x\|)}$$
$$\mathcal{M}(x, y) = \mathcal{K}_s(x, y) + \frac{1-A_{\Omega}(x, y)}{10}\cdot\zeta^2\cdot e^{-\kappa\|r(x,y)\|^2} + \xi^3\cdot e^{-\sigma\|r(x,y)\|^2}$$
$$\mathcal{K}_s(x, y) = \sum_{i=1}^{5}\frac{8+25\mathcal{R}(x, y)}{20}L_i(x, y)e^{-\tau_i\sqrt{\|\mathcal{E}_i(x,y)\|^2+\|\mathcal{F}_i(x,y)\|^2+\|\mathcal{G}_i(x,y)\|^2+\|\mathcal{H}_i(x,y)\|^2}}$$
$$A_{\Omega}(x, y) = \left(\prod_{i=1}^{3}C_{a,i}(x, y)\right)\left(\prod_{j=1}^{3}C_{b,j}(x, y)\right)$$
$$C_{a,i}(x, y) = e^{-\frac{\lambda_{a,i}}{\ln(\|x\|^2+\|y\|^2+\epsilon)}\left(\sqrt{\|x\|^4+\|y\|^4}+\mathcal{D}(x,y)\right)}$$
$$C_{b,j}(x, y) = e^{-\frac{\|x\|^2+\mu\|y\|^2+\nu}{\ln(\|x\|^2+\|y\|^2+\epsilon)}\left(\sqrt{\|x\|^2+\|y\|^2+\phi}+\mathcal{D}(x,y)^{\rho_{j}}\right)}$$
$$\mathcal{D}(x, y) = \frac{2-v}{2}e^{\tau\sin(v\|x\|)\cos(v\|y\|)} - \frac{v^2-v+2}{20}e^{\kappa\cos(v\|x\|)\sin(v\|y\|)} \cdot e^{\alpha_{\mathcal{D}}\|r(x,y)\|^2}$$
$$L_i(x, y) = e^{\lambda\sqrt{\|P_i(x,y)\|^2+\|Q_i(x,y)\|^2}} \cdot \cos\{7[\cos(4\pi)P_i(x,y)+\sin(4\pi)Q_i(x,y)]+2\cos\{4\sin([27+v\pi]P_i(x,y)+4\sin([27+v\pi)Q_i(x,y))+4\cos(3\pi)\}\}$$
$$P_i(x, y) = \left(x + (1-3v)^2\frac{1}{2} + \frac{9}{10}\right)\cos\left(\frac{3+v}{7}\ln(W_i(x, y))\right) + \left(y - (1-3v)^2\frac{1}{4} + \frac{13}{20}\right)\sin\left(\frac{3+v}{7}\ln(W_i(x, y))\right)$$
$$Q_i(x, y) = \left(x + (1-3v)^2\frac{1}{2} + \frac{9}{10}\right)\sin\left(\frac{3+v}{7}\ln(W_i(x, y))\right) - \left(y - (1-3v)^2\frac{1}{4} + \frac{13}{20}\right)\cos\left(\frac{3+v}{7}\ln(W_i(x, y))\right)$$
$$W_i(x, y) = \left(x + (1-3v)^2\frac{1}{2} + \frac{9}{10}\right)^2 + \left(2+3v\right)\left(y - (1-3v)^2\frac{1}{4} + \frac{13}{20}\right)^2 + 10^{-7}$$
$$E_i(x, y) = \sum_{k=1}^{3}\frac{3+57v}{240}(23-2v)^{-1}20^k V_{a,i}(x, y)$$
$$V_{a,i}(x, y) = \cos(5[14-3v]^{-1}10^{-11}(1+3\cos(10^{-3}))(\cos(2v^2)x+\sin(2v^2)y)) + 4\cos([14-3v]^{-1}10^{-10}(\cos(10^{-3})x+\sin(10^{-3})y)) + 2\cos(5v)$$
$$\times \cos(5[14-3v]^{-1}10^{-11}(1+3\cos(10^{-3}))(\cos(2v^2)y-\sin(2v^2)x)) + 4\cos([14-3v]^{-1}10^{-10}(\cos(10^{-3})y+\sin(10^{-3})x)) + 2\cos(5v)$$
- $\alpha_r = 1.5, \alpha_g = 2.0, \alpha_b = 2.5$
- $\beta_r = 0.7, \beta_g = 0.4, \beta_b = 0.2$
- $\gamma_r = 3.0, \gamma_g = 4.0, \gamma_b = 5.0$
- $\delta_r = 0.2, \delta_g = 0.15, \delta_b = 0.1$
- $\epsilon = 10^{-6}, \phi = 10^{-4}, \rho_j \in \{1.2, 1.5, 1.8\}$
- $\lambda = 1.5, \tau = 2.3, \kappa = 0.8, \sigma = 1.2$
- $\mu = 1.2, \nu = 0.7, v = 0.4$
- $\zeta = 0.8, \xi = 0.5$
- $\tau_i \in \{0.3, 0.6, 0.9, 1.2, 1.5\}$
- $\lambda_{a,i} \in \{0.7, 1.1, 1.5\}$
- $\alpha_{\mathcal{D}} = -0.3$
- $\eta = 200$```
#define BLACK_HOLE_RADIUS 1.0
#define SCHWARZSCHILD_RADIUS 0.4
#define ACCRETION_DISK_INNER 1.0
#define ACCRETION_DISK_OUTER 4.0
#define ACCRETION_DISK_THICKNESS 0.1
#define DISK_TEMPERATURE_SCALE 1.5
#define LENSING_STRENGTH 2.5
#define DOPPLER_STRENGTH 1.2
#define GRAVITATIONAL_REDSHIFT 0.9
#define ROTATION_SPEED 0.2
#define STAR_DENSITY 200.0
#define DUST_DENSITY 0.4float hash(vec2 p) {
p = fract(p * vec2(123.45, 678.91));
p += dot(p, p + 45.32);
return fract(p.x * p.y);
}float noise(vec2 p) {
vec2 i = floor(p);
vec2 f = fract(p);
f = f * f * (3.0 - 2.0 * f);float a = hash(i);
float b = hash(i + vec2(1.0, 0.0));
float c = hash(i + vec2(0.0, 1.0));
float d = hash(i + vec2(1.0, 1.0));return mix(mix(a, b, f.x), mix(c, d, f.x), f.y);
}vec3 starField(vec2 uv, float time) {
float stars1 = pow(noise(uv * STAR_DENSITY), 20.0) * 1.0;
float stars2 = pow(noise(uv * STAR_DENSITY * 0.5 + 30.0), 20.0) * 1.5;
float stars3 = pow(noise(uv * STAR_DENSITY * 0.25 + 10.0), 20.0) * 2.0;
stars1 *= 0.8 + 0.2 * sin(time * 1.5 + uv.x * 10.0);
stars2 *= 0.8 + 0.2 * sin(time * 0.7 + uv.y * 12.0);
stars3 *= 0.8 + 0.2 * cos(time * 1.0 + uv.x * uv.y * 5.0);vec3 color1 = vec3(0.8, 0.9, 1.0) * stars1;
vec3 color2 = vec3(1.0, 0.9, 0.7) * stars2;
vec3 color3 = vec3(1.0, 0.6, 0.5) * stars3;
return color1 + color2 + color3;
}vec3 nebulaEffect(vec2 uv, float time) {
vec3 nebula = vec3(0.0);
float t = time * 0.05;
float n1 = noise(uv * 1.0 + t);
float n2 = noise(uv * 2.0 - t * 0.5);
float n3 = noise(uv * 4.0 + t * 0.2);
float nebulaNoise = pow(n1 * n2 * n3, 3.0) * DUST_DENSITY;
nebula += vec3(0.2, 0.1, 0.3) * nebulaNoise * 2.0;
nebula += vec3(0.1, 0.2, 0.4) * nebulaNoise * 1.5;
nebula += vec3(0.3, 0.1, 0.2) * pow(n3, 4.0) * 0.8;
return nebula;
}vec3 dopplerShift(vec3 color, float velocity) {
float doppler = 1.0 + velocity * DOPPLER_STRENGTH;return vec3(
color.r * (velocity < 0.0 ? 1.0/doppler : 1.0),
color.g,
color.b * (velocity > 0.0 ? 1.0/doppler : 1.0)
);
}vec3 temperatureColor(float temperature) {
vec3 color = vec3(1.0);
color.r = pow(temperature, 1.5);
color.g = pow(temperature, 2.0) * (1.0 - temperature * 0.5);
color.b = pow(temperature, 3.0) * (1.0 - temperature * 0.8);
color = normalize(color) * pow(temperature, 1.5);
return color;
}vec2 raytrace(vec2 uv, float radius, float lensStrength) {
float r = length(uv);
float theta = atan(uv.y, uv.x);
float bendingFactor = lensStrength * SCHWARZSCHILD_RADIUS / max(r, 0.001);
float bendingAmount = 1.0 / (1.0 + pow(r / radius, 2.0) * exp(-bendingFactor));
float newRadius = mix(r, radius * radius / r, bendingAmount);
return vec2(cos(theta), sin(theta)) * newRadius;
}void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
float time = iTime * 0.5;
vec2 lensedUV = raytrace(uv, BLACK_HOLE_RADIUS, LENSING_STRENGTH);
float r = length(lensedUV);
float theta = atan(lensedUV.y, lensedUV.x);
float rotatedTheta = theta + time * ROTATION_SPEED;
vec2 diskUV = vec2(r * cos(rotatedTheta), r * sin(rotatedTheta));
float diskDistance = abs(diskUV.y) / ACCRETION_DISK_THICKNESS;
float diskRadius = length(diskUV);
float diskMask = smoothstep(ACCRETION_DISK_INNER, ACCRETION_DISK_INNER + 0.1, diskRadius) *
smoothstep(ACCRETION_DISK_OUTER + 0.1, ACCRETION_DISK_OUTER, diskRadius) *
smoothstep(1.0, 0.0, diskDistance);
float temperature = mix(0.3, 1.0, smoothstep(ACCRETION_DISK_OUTER, ACCRETION_DISK_INNER, diskRadius)) * DISK_TEMPERATURE_SCALE;
vec3 diskColor = temperatureColor(temperature);
float velocity = sin(rotatedTheta) * 0.8 * smoothstep(ACCRETION_DISK_OUTER, ACCRETION_DISK_INNER, diskRadius);
diskColor = dopplerShift(diskColor, velocity);
float redshiftFactor = mix(1.0, GRAVITATIONAL_REDSHIFT, smoothstep(ACCRETION_DISK_OUTER * 0.5, ACCRETION_DISK_INNER, diskRadius));
diskColor *= redshiftFactor;
float blackHoleMask = 1.0 - smoothstep(SCHWARZSCHILD_RADIUS * 0.9, SCHWARZSCHILD_RADIUS, r);vec2 starUV = mix(uv, lensedUV, smoothstep(5.0, 1.0, length(uv)));
vec3 stars = starField(starUV * 0.5, time);
vec3 nebula = nebulaEffect(starUV * 0.2, time) * 0.3;
float photonRing = smoothstep(SCHWARZSCHILD_RADIUS - 0.03, SCHWARZSCHILD_RADIUS, r) *
smoothstep(SCHWARZSCHILD_RADIUS + 0.03, SCHWARZSCHILD_RADIUS, r);
vec3 photonRingColor = vec3(1.0, 0.8, 0.6) * 5.0 * photonRing;
float blueShiftGlow = pow(max(0.0, -sin(rotatedTheta)), 4.0) * diskMask * 2.0;
vec3 blueShiftColor = vec3(0.5, 0.7, 1.0) * blueShiftGlow;
vec3 color = vec3(0.0);
color += (stars + nebula) * (1.0 - blackHoleMask);
color += diskColor * diskMask * 3.0;
color += photonRingColor;
color += blueShiftColor;
color += max(vec3(0.0), color - 1.0) * 0.5;color = pow(color, vec3(0.8));
color = (color - 0.1) * 1.1;
fragColor = vec4(max(vec3(0.0), color), 1.0);
}
```---
# STATS
CLICK ON ME TO SHOW 'CPScripts' USER STATISTICS
name|statistics
----|----
Languages |![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Cloud (I don't like the cloud)|![]()
![]()
![]()
![]()
Operating systems (i rarely use raspbain and osmore)|![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
All uploaded repo Langs (This doesn't actually show all of the languages i have used, it shows all of the ones uploaded to my github profile and how much i use such language) (This chart confuses me as I don't remember using some of them!) | 
Streak | [](https://git.io/streak-stats)
Comments & contributions | ![]()
Trophies | [](https://github.com/CPScript/github-profile-trophy)
Octoring |