Warning: file_put_contents(aCache/aDaily/post/javascriptv/-1425-1426-1427-1428-1429-1425-): Failed to open stream: No space left on device in /var/www/tgoop/post.php on line 50
Javascript@javascriptv P.1425
JAVASCRIPTV Telegram 1425
πŸ–₯ p5.js β€” open-source Π±ΠΈΠ±Π»ΠΈΠΎΡ‚Π΅ΠΊΠ° JavaScript, заточСнная ΠΏΠΎΠ΄ созданиС Π²ΠΈΠ·ΡƒΠ°Π»ΠΈΠ·Π°Ρ†ΠΈΠΉ, Π°Π½ΠΈΠΌΠ°Ρ†ΠΈΠΉ ΠΈ Ρ‚.Π΄.

Π’ p5.js сдСлан ΡƒΠΏΠΎΡ€ Π½Π° простоту использования ΠΈ Π»Π°ΠΊΠΎΠ½ΠΈΡ‡Π½ΠΎΡΡ‚ΡŒ
К ΠΏΡ€ΠΈΠΌΠ΅Ρ€Ρƒ, Π²ΠΎΡ‚ ΠΊΠΎΠ΄ для Π²ΠΈΠ·ΡƒΠ°Π»ΠΈΠ·Π°Ρ†ΠΈΠΈ ΠΏΡƒΠ·Ρ‹Ρ€ΡŒΠΊΠΎΠ²ΠΎΠΉ сортировки:
let values = [];
let i = 0;
let j = 0;

function setup() {
createCanvas(720, 400);
for(let i = 0;i<width/8;i++){
values.push(random(height));
}
}

function draw() {
background(220);
bubbleSort();
simulateSorting();
}

function bubbleSort() {
for(let k = 0;k<8;k++){
if(i<values.length){
let temp = values[j];
if(values[j] > values[j+1]){
values[j] = values[j+1];
values[j+1] = temp;
}
j++;

if(j>=values.length-i-1){
j = 0;
i++;
}
}
else{
noLoop();
}
}
}

function simulateSorting(){
for(let i = 0;i<values.length;i++){
stroke(100, 143, 143);
fill(50);
rect(i*8 , height, 8, -values[i],20);
}
}


πŸ–₯ GitHub
🟑 ΠŸΡ€ΠΈΠΌΠ΅Ρ€Ρ‹ использования p5.js

@javascriptv
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ”₯12πŸ‘6❀5



tgoop.com/javascriptv/1425
Create:
Last Update:

πŸ–₯ p5.js β€” open-source Π±ΠΈΠ±Π»ΠΈΠΎΡ‚Π΅ΠΊΠ° JavaScript, заточСнная ΠΏΠΎΠ΄ созданиС Π²ΠΈΠ·ΡƒΠ°Π»ΠΈΠ·Π°Ρ†ΠΈΠΉ, Π°Π½ΠΈΠΌΠ°Ρ†ΠΈΠΉ ΠΈ Ρ‚.Π΄.

Π’ p5.js сдСлан ΡƒΠΏΠΎΡ€ Π½Π° простоту использования ΠΈ Π»Π°ΠΊΠΎΠ½ΠΈΡ‡Π½ΠΎΡΡ‚ΡŒ
К ΠΏΡ€ΠΈΠΌΠ΅Ρ€Ρƒ, Π²ΠΎΡ‚ ΠΊΠΎΠ΄ для Π²ΠΈΠ·ΡƒΠ°Π»ΠΈΠ·Π°Ρ†ΠΈΠΈ ΠΏΡƒΠ·Ρ‹Ρ€ΡŒΠΊΠΎΠ²ΠΎΠΉ сортировки:

let values = [];
let i = 0;
let j = 0;

function setup() {
createCanvas(720, 400);
for(let i = 0;i<width/8;i++){
values.push(random(height));
}
}

function draw() {
background(220);
bubbleSort();
simulateSorting();
}

function bubbleSort() {
for(let k = 0;k<8;k++){
if(i<values.length){
let temp = values[j];
if(values[j] > values[j+1]){
values[j] = values[j+1];
values[j+1] = temp;
}
j++;

if(j>=values.length-i-1){
j = 0;
i++;
}
}
else{
noLoop();
}
}
}

function simulateSorting(){
for(let i = 0;i<values.length;i++){
stroke(100, 143, 143);
fill(50);
rect(i*8 , height, 8, -values[i],20);
}
}


πŸ–₯ GitHub
🟑 ΠŸΡ€ΠΈΠΌΠ΅Ρ€Ρ‹ использования p5.js

@javascriptv

BY Javascript








Share with your friend now:
tgoop.com/javascriptv/1425

View MORE
Open in Telegram


Telegram News

Date: |

The channel also called on people to turn out for illegal assemblies and listed the things that participants should bring along with them, showing prior planning was in the works for riots. The messages also incited people to hurl toxic gas bombs at police and MTR stations, he added. Don’t publish new content at nighttime. Since not all users disable notifications for the night, you risk inadvertently disturbing them. 3How to create a Telegram channel? The creator of the channel becomes its administrator by default. If you need help managing your channel, you can add more administrators from your subscriber base. You can provide each admin with limited or full rights to manage the channel. For example, you can allow an administrator to publish and edit content while withholding the right to add new subscribers. For crypto enthusiasts, there was the β€œgm” app, a self-described β€œmeme app” which only allowed users to greet each other with β€œgm,” or β€œgood morning,” a common acronym thrown around on Crypto Twitter and Discord. But the gm app was shut down back in September after a hacker reportedly gained access to user data.
from us


Telegram Javascript
FROM American