aatend2.0's People
aatend2.0's Issues
test
import pygame,sys,random
pygame.init()
scr = pygame.display.set_mode((500,500))
z = 250
s={
"c":[0],
"d":[15],
"a":[-5]
}
st = {
"c":0,
"d":1,
"a":-1
}
dc = 0
c = pygame.time.Clock()
def col(i,oi):
if i > 0:
if i > oi: return (0,255,0)
return (255,0,0)
if i > oi: return (0,150,0)
return (150,0,0)
while True:
dc += c.tick(20)
scr.fill("black")
pygame.draw.line(scr,"white",(0,z),(500,z),1)
for e in pygame.event.get():
if e.type == pygame.QUIT:
sys.exit()
for k,v in s.items():
I = 0
pi = 0
for i in v[-50:]:
pygame.draw.line(scr,col(i,pi),(I-10,z-pi),(I,z-i),3)
I += 10
pi = i
if round(dc) % 15:
V = random.randint(-75,75)/10
s[k].append(pi+(V)+st[k])
st[k] += V/10
pygame.display.flip()
settings
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.