new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Electron · API · all subjects

web-contents/rendering

3 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

contents.beginFrameSubscription(onlyDirty, callback) - subscribe to frames

Begin subscribing for presentation events and captured frames. The callback will be called with callback(image, dirtyRect) when there is a presentation event. The image is an instance of NativeImage that stores the captured frame. The dirtyRect is an object with x, y, width, height properties that describes which part of the page was repainted. If onlyDirty is set to true, image will only contain the repainted area. onlyDirty defaults to false. Parameters: onlyDirty (boolean, optional, defaults to false), callback (Function) with image (NativeImage) and dirtyRect (Rectangle).

contents.endFrameSubscription() - end frame subscription

End subscribing for frame presentation events.

contents.invalidate() - schedule repaint

Schedules a full repaint of the window this web contents is in. If offscreen rendering is enabled invalidates the frame and generates a new one through the 'paint' event.

Give your agent this brain