Algorithm 1 Suggesting Compatible Colors 1: procedure COMPATIBLECOLORS(palette t, index k, #cands Ncand, #samples Nsample, threshold (τ, κ)) 2: . Sampling candidate’s HSVs 3: f ← COMPUTEHUEPROBABILITY(t, k) . Eq. 3 or Eq. 4 4: hi← SAMPLINGFROMHUEPROB( f , Nsample) 5: si ∼N (μs,σs) . §4.2 6: vi ∼N (μv,σv) . §4.2 7: . Compute rating 8: for i = 1→ m do 9: ci← (hi, si,vi) 10: Ccand i ← COMPATIBLECA...