Scratch etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
Scratch etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

2015-11-03

3 Point Parabola (Spline)


https://scratch.mit.edu/projects/86400200/ 

P is generated according to the following formula.

Q = (1-t)*A + t*B
R = (1-t)*B + t*C

P = (1-t)*Q+ t*R




I will try to simplify equation on next project.


P = (1-t)*((1-t)*A + t*B)+ t*((1-t)*B + t*C)

P = (1-t)*((1*A-t*A) + t*B)+ t*((1*B-t*B) + t*C)

P = (1-t)*((1*A-t*A) + t*B) + t*(1*B-t*B + t*C)

P = (1-t)*(1*A - t*A + t*B) + t*(1*B-t*B + t*C)

P = (1*(1*A - t*A + t*B)) -t*(1*A - t*A + t*B) + t*(1*B-t*B + t*C)

P = (1*A - t*A + t*B) -(t*A - t*t*A + t*t*B) + t*(1*B-t*B + t*C)

P = (A - t*A + t*B) -(t*A - t*t*A + t*t*B) + (t*B-t*t*B + t*t*C)

P = A - t*A + t*B -t*A + t*t*A – t*t*B + t*B -t*t*B + t*t*C

P = A - t*A -t*A + t*t*A + t*B - t*t*B + t*B -t*t*B + t*t*C

P = A - 2t*A + t*t*A + 2t*B - 2*t*t*B + t*t*C

P = A - 2t*A + 2t*B + t*t*A - 2*t*t*B + t*t*C

P = A - 2t*(A+B) + t*t*(A - 2*B + C)

OR


P = (1-t)(1-t)A + (t * (1-t) + t * (1-t)) * B + t*t*c

t* (1-t) = t- t*t

P = (1-t)(1-t)A + (2t - 2t*t) * B + t*t*C

P = (1-t)(1-t)A + 2t *B - 2*t*t* B + t*t*C

(1-t)(1-t) = 1 – t -t + t*t

P = A -2*t*A+ t*t*A + 2t *B - 2*t*t* B + t*t*C


2015-05-25

Café Wall Illusion

Café Wall Illusion



https://scratch.mit.edu/projects/682541/


The café wall illusion is a geometrical-optical illusion in which the parallel straight dividing lines between staggered rows with alternating black and white "bricks" appear to be sloped.
It was first described under the name Kindergarten illusion in 1898, and re-discovered by Richard Gregory in 1973. According to Gregory, this effect was observed by a member of his laboratory, Steve Simpson, in the tiles of the wall of a café at the bottom of St Michael's Hill, Bristol. It is a variant of the shifted-chessboard illusion originated by Münsterberg.

In the construction of the optical illusion often each "brick" is surrounded by a layer of "mortar" intermediate between the dark and light colours of the "bricks".

In the first and quite successful attempt at its deconstruction  the illusion was ascribed largely to irradiation, the light spread from dark to bright zones in the retinal image, and indeed the image disappears when black and white are replaced by different colours of the same brightness (isoluminant). But a component of the illusion remains even when all optical and retinal components are factored out. Contrast polarities seem to be the determining factor in the tilt's direction.

Text source: https://en.wikipedia.org/wiki/Caf%C3%A9_wall_illusion



2010-05-04

Photonic traps simulation


https://scratch.mit.edu/projects/1027487/

A photonic crystal is a periodic optical nanostructure that affects the motion of photons in much the same way that ionic lattices affect electrons in solids. Photonic crystals occur in nature in the form of structural coloration—and, in different forms, promise to be useful in a range of applications.
In 1887 the English physicist Lord Rayleigh experimented with periodic multi-layer dielectric stacks, showing they had a photonic band-gap in one dimension. Research interest grew with work in 1987 by Yablonovitch and John on periodic optical structures with more than one dimension—now called photonic crystals.
Photonic crystals can be fabricated for one, two, or three dimensions. One-dimensional photonic crystals can be made of layers deposited or stuck together. Two-dimensional ones can be made by photolithography, or by drilling holes in a suitable substrate. Fabrication methods for three-dimensional ones include drilling under different angles, stacking multiple 2-D layers on top of each other, direct laser writing, or, for example, instigating self-assembly of spheres in a matrix and dissolving the spheres.
Photonic crystals can, in principle, find uses wherever light must be manipulated. Existing applications include thin-film optics with coatings for lenses. Two-dimensional photonic-crystal fibers are used in nonlinear devices and to guide exotic wavelengths. Three-dimensional crystals may one day be used in optical computers.
Source: http://bit.ly/photonic_crystals