Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(26)

Unified Diff: example/gamma/main.go

Issue 4040045: code review 4040045: freetype: s/float/float64/. (Closed)
Patch Set: code review 4040045: freetype: s/float/float64/. Created 14 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « example/freetype/main.go ('k') | freetype/freetype.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: example/gamma/main.go
===================================================================
--- a/example/gamma/main.go
+++ b/example/gamma/main.go
@@ -55,7 +55,7 @@
draw.Draw(rgba, image.Rect(0, h/2, w, h), image.White, image.ZP)
mask := image.NewAlpha(50, 50)
painter := raster.NewAlphaSrcPainter(mask)
- gammas := []float{1.0 / 10.0, 1.0 / 3.0, 1.0 / 2.0, 2.0 / 3.0, 4.0 / 5.0, 1.0, 5.0 / 4.0, 3.0 / 2.0, 2.0, 3.0, 10.0}
+ gammas := []float64{1.0 / 10.0, 1.0 / 3.0, 1.0 / 2.0, 2.0 / 3.0, 4.0 / 5.0, 1.0, 5.0 / 4.0, 3.0 / 2.0, 2.0, 3.0, 10.0}
for i, g := range gammas {
clear(mask)
r.Rasterize(raster.NewGammaCorrectionPainter(painter, g))
« no previous file with comments | « example/freetype/main.go ('k') | freetype/freetype.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b