ძირითადი მასალა
არასაჯარო რესურსების ზონა
კურსი: არასაჯარო რესურსების ზონა > თემა 2
გაკვეთილი 1: ProcessingJS დოკუმენტაცია- rect(x, y, width, height, radius)
- ellipse(x, y, w, h)
- triangle(x1, y1, x2, y2, x3, y3)
- line(x1, y1, x2, y2)
- point(x, y)
- arc(x, y, w, h, start, stop)
- bezier(x1, y1, cx1, cy1, cx2, cy2, x2, y2)
- quad(x1, y1, x2, y2, x3, y3, x4, y4)
- image(image, x, y, width*, height*)
- ellipseMode(MODE)
- rectMode(MODE)
- imageMode(MODE)
- strokeCap(MODE)
- bezierPoint(a, b, c, d, t)
- bezierTangent(a, b, c, d, t)
- curve(x1, y1, x2, y2, x3, y3, x4, y4)
- curvePoint(a, b, c, d, t)
- curveTangent(a, b, c, d, t)
- curveTightness(tightness)
- beginShape()/endShape()
- curveVertex(x, y)
- bezierVertex(cx1, cy1, cx2, cy2, x, y)
- strokeJoin(MODE)
- background(r, g, b, a*)
- fill(r, g, b, a*)
- noFill()
- stroke(r, g, b, a*)
- strokeWeight(thickness)
- noStroke()
- color(r, g, b, a*)
- blendColor(c1, c2, MODE)
- lerpColor(c1, c2, amount)
- colorMode(MODE)
- red(color)
- green(color)
- blue(color)
- alpha(color)
- hue(color)
- saturation(color)
- brightness(color)
- text(message, x, y, width*, height*)
- textFont(font, size*)
- textSize(size)
- textWidth(str)
- textAscent()
- textDescent()
- textLeading(dist)
- textAlign(ALIGN, YALIGN)
- rotate(angle)
- translate(x, y)
- scale(amount)
- pushMatrix()/popMatrix()
- resetMatrix()
- printMatrix()
- სიგანე
- სიმაღლე
- playSound(sound)
- draw()
- Program.assertEqual()
- Program.restart()
- frameRate(fps)
- frameCount
- loop()
- noLoop()
- mouseX/mouseY
- pmouseX / pmouseY
- mouseButton
- mouseIsPressed
- mouseClicked()
- mousePressed()
- mouseReleased()
- mouseMoved()
- mouseDragged()
- mouseOver()
- mouseOut()
- გასაღები
- keyCode
- keyIsPressed
- keyPressed()
- keyReleased()
- keyTyped()
- random(low, high)
- dist(x1, y1, x2, y2)
- constrain(value, min, max)
- min(num1, num2)
- max(num1, num2)
- abs(num)
- log(num)
- pow(num, exponent)
- sq(num)
- sqrt(num)
- round(num)
- ceil(num)
- floor(num)
- PVector(x, y)
- PVector.get()
- PVector.set(x, y)
- PVector.mag()
- PVector.add(vector)
- PVector.sub(x, y)
- PVector.mult(scalar)
- PVector.div(scalar)
- PVector.dist(vector2)
- PVector.dot(vector2)
- PVector.cross(vector2)
- PVector.normalize()
- PVector.limit(max)
- PVector.array()
- PVector.angleBetween(vector1, vector2)
- PVector.heading()
- PVector.rotate(angle)
- mag(x, y)
- exp(num)
- map(num, low1, high1, low2, high2)
- norm(num, low, high)
- lerp(num1, num2, amount)
- noise()
- noiseDetail(octaves, falloff)
- Random(seed)
- cos(deg)
- sin(deg)
- tan(deg)
- acos(val)
- asin(val)
- atan(val)
- atan2(y, x)
- radians(angle)
- degrees(angle)
- angleMode
- day()
- month()
- year()
- hour()
- minute()
- second()
- millis()
- debug(arg1, arg2, ...)
- println(data)
- print(data)
- ფუნქციის განსაზღვრა
- მასივები
- if დებულებები
- for ციკლები
- while ციკლები
© 2023 Khan Academyგამოყენების პირობებიკონფიდენციალურობის პოლიტიკაშენიშვნა ქუქი-ჩანაწერებზე
blendColor(c1, c2, MODE)
ურევს ორი ფერის მნიშვნელობას ერთმანეთს შერევის რეჟიმის მიხედვით, რომელიც მოცემულია როგორც
MODE
პარამეტრი.სახელი | აღწერა |
---|---|
c1 | პირველი შესარევი ფერი |
c2 | მეორე შესარევი ფერი |
MODE | ჩამოთვლილთაგან ერთ–ერთი: BLEND , ADD , SUBTRACT , DARKEST , LIGHTEST , DIFFERENCE , EXCLUSION , MULTIPLY , SCREEN , OVERLAY , HARD_LIGHT , SOFT_LIGHT , DODGE , ან BURN . |
როგორ მუშაობენ რეჟიმები:
სახელი | აღწერა |
---|---|
BLEND | ფერების წრფივი ინტერპოლაცია: C, equals, A, times, მ, ა, მ, რ, ა, ვ, ლ, ი, plus, B |
ADD | დამატებითი შერევა თეთრი ფონური განათებით: C, equals, \min, left parenthesis, A, times, მ, ა, მ, რ, ა, ვ, ლ, ი, plus, B, comma, 255, right parenthesis |
SUBTRACT | გამოკლებითი შერევა შავი ფონით: C, equals, \max, left parenthesis, B, minus, A, times, მ, ა, მ, რ, ა, ვ, ლ, ი, comma, 0, right parenthesis |
DARKEST | მხოლოდ ყველაზე ბმელი ფერი "იმარჯვებს": C, equals, \min, left parenthesis, A, times, f, a, c, t, o, r, comma, B, right parenthesis |
LIGHTEST | მხოლოდ ყველაზე ღია ფერი "იმარჯვებს": C, equals, \max, left parenthesis, A, times, f, a, c, t, o, r, comma, B, right parenthesis |
DIFFERENCE | აკლებს ფერებს ძირითადი სურათიდან. |
EXCLUSION | იგივეა, რაც DIFFERENCE , მაგრამ ნაკლებ ექსტრემალური. |
MULTIPLY | ფერების გამრავლება, შედეგი ყოველთვის უფრო ბნელი იქნება. |
SCREEN | საპირისპირო გამრავლება, იყენებს ფერების შებრუნებულ მნიშვნელობებს. |
OVERLAY | MULTIPLY –ისა და SCREEN –ის ნაზავი. ამრავლებს ბნელ მნიშვნელობებს და "screen"–ავს ღია მნიშვნელობებს. |
HARD_LIGHT | SCREEN როცა მეტია 50% ნაცრისფერზე, MULTIPLY როცა ნაკლებია. |
SOFT_LIGHT | DARKEST –ისა და LIGHTEST –ის ნაზავი. მუშაობს, როგორც OVERLAY , მაგრამ არაა ისეთივე უხეში. |
DODGE | აღიავებს ღია ტონებს და უმატებს კონტრასტს, აიგნორებს ბნელებს. Illustrator-სა და Photoshop–ში ჰქვია "Color Dodge". |
BURN | გამოყენებულია უფრო ბნელი არეები, იმატებს კონტრასტი, აიგნორებს შუქებს. Illustrator-სა და Photoshop-ში ჰქვია "Color Burn". |
გსურთ, შეუერთდეთ დისკუსიას?
პოსტები ჯერ არ არის.