if (FALSE) {
sjd = fsaverage.path(TRUE);
surfaces = subject.surface(sjd, 'fsaverage', surface = "white", hemi = "both");
colors = geod.patches.color.overlay(surfaces, vertex = c(12345L, 45L),
color = c("#FF0000", "#00FF00"), max_distance = 45.0);
vis.color.on.subject(sjd, 'fsaverage', color_lh=colors$lh, color_rh=colors$rh);
}
Run the code above in your browser using DataLab