update implementation
This commit is contained in:
parent
07a22bace5
commit
07bd88f868
3 changed files with 1 additions and 4 deletions
Binary file not shown.
Before Width: | Height: | Size: 250 KiB After Width: | Height: | Size: 264 KiB |
|
@ -37,7 +37,7 @@ func saveToPngFile(filePath string, m image.Image) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
i := image.NewRGBA(600, 600)
|
i := image.NewRGBA(600, 800)
|
||||||
gc := draw2d.NewGraphicContext(i)
|
gc := draw2d.NewGraphicContext(i)
|
||||||
gc.Translate(0, 380)
|
gc.Translate(0, 380)
|
||||||
gc.Scale(1,-1)
|
gc.Scale(1,-1)
|
||||||
|
|
|
@ -264,9 +264,6 @@ func (interpreter *Interpreter) ClearOperands() {
|
||||||
|
|
||||||
func (interpreter *Interpreter) PopFloat() float {
|
func (interpreter *Interpreter) PopFloat() float {
|
||||||
operand := interpreter.Pop()
|
operand := interpreter.Pop()
|
||||||
if s, ok := operand.(string); ok {
|
|
||||||
log.Printf("String not float: %s", s)
|
|
||||||
}
|
|
||||||
return operand.(float)
|
return operand.(float)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue