Index << >>
A Picture is Worth a Thousand Words
dx←x-Rx←⌊x dy←y-Ry←⌊y bg←1≤dx+dy ⍝ blue/green b ←bg^dx<dy ⍝ blue g ←bg^dx≥dy ⍝ green (Rx+b)j(Ry+g)