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.1426
JAVASCRIPTV Telegram 1426
πŸ–₯ 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
πŸ”₯12πŸ‘6❀5



tgoop.com/javascriptv/1426
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/1426

View MORE
Open in Telegram


Telegram News

Date: |

The optimal dimension of the avatar on Telegram is 512px by 512px, and it’s recommended to use PNG format to deliver an unpixelated avatar. Administrators To upload a logo, click the Menu icon and select β€œManage Channel.” In a new window, hit the Camera icon. 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. "Doxxing content is forbidden on Telegram and our moderators routinely remove such content from around the world," said a spokesman for the messaging app, Remi Vaughn.
from us


Telegram Javascript
FROM American